You must add a reference to assembly 'netstandard, Version=2.0.0.0

后端 未结 17 2527
遇见更好的自我
遇见更好的自我 2020-12-02 08:23

The project is an ASP.NET MVC Web App targeting the .NET Framework 4.6.1.

All of a sudden (some NuGet packages were upgraded) I started to get the following error du

17条回答
  •  爱一瞬间的悲伤
    2020-12-02 08:53

    I had to do a combination of other people's answers on this thread.

    1. Install the NetStandard.Library via NuGet
    2. Manually editing the .csproj file and adding the reference.
    3. Expanding project-->References in the VS Solution Explorer, right clicking on 'netstandard' and showing the properties page and setting "Copy Local" to true.

提交回复
热议问题