Open a workaround that identityserver4\identityserver4.samples\quickstarts\6_aspnetidentity cannot compile

Source: Internet
Author: User
Tags dotnet

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.