Create a new Web project using VS2017 error:
It makes no sense to see such a false hint. Bright this should be a VS2017 bug and there is no location to display the error. The result is a dotnet restore
manual restore, which finally shows a detailed error in the console:
C:\Program files\dotnet\sdk\1.0.0\nuget.targets (97,5): Error:package microsoft.composition 1.0.27 is not compatible With netcoreapp1.1 (. netcoreapp,version=v1.1). Package Microsoft.composition 1.0.27 supports:portable-net45+win8+wp8+wpa81 (. netportable,version=v0.0,profile=profile259) [C:\Users\username\Documents\Admin.Web.Tests\ Admin.web.tests.csproj]c:\program files\dotnet\sdk\1.0.0\nuget.targets (97,5): Error:one or more packages is Incompatible with. netcoreapp,version=v1.1. [C:\Users\username\Documents\test\Admin.Web.Tests\Admin.Web.Tests.csproj]
Edit the file in the wrong project csproj
: PropertyGroup
Add under Nodeportable-net45+win8+wp8+wpa81
<PropertyGroup> <TargetFramework>netcoreapp1.1</TargetFramework> < Packagetargetfallback>portable-net45+win8+wp8+wpa81</packagetargetfallback> </PropertyGroup >
Reprinted from: https://q.cnblogs.com/q/91766
Open a workaround that identityserver4\identityserver4.samples\quickstarts\6_aspnetidentity cannot compile