c# - Using Microsoft.AspNetCore.All package in netstandard -
at moment i'm porting asp web api .net core.
the api uses class library provides implementations of actionfilterattribute class.
so have port class library well. when tried add nuget package microsoft.aspnetcore.all class library recived error:
package microsoft.aspnetcore.all 2.0.0 not compatible netstandard2.0
when change target framework netcoreapp2.0, i'm able install package, of course need entry point target type.
how can create netcore class library can use microsoft.aspnetcore.all package
greetings
you can't (well technically via nuget fallback, shouldn't may affect portability) , shouldn't.
the .all package convenience meta-package, don't need reference dozen or other assemblies simplest asp.net core project.
it's targeting .net core reason, can't use in .net standard.
when publish application, unused packages stripped off. when doing class library don't want dependency on packages required project.
Comments
Post a Comment