Problems with adding reference to netstandard 2.0

北慕城南 提交于 2019-12-12 10:34:27

问题


I changed my Asp.Net Core 1.1 application to Core 2.0

This went pretty well but after I updated my nuget packages and I get this error everywhere

The type 'xxx' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.

When I press the button to add an assembly nothing happens. I tried rebuilding and restoring my packages multiple times but it won't work


回答1:


I think you are having problem with the reference to the old NETStandard version in your class library. Just make sure you have removed NETStandard reference from all the csproj files in the solution.



来源:https://stackoverflow.com/questions/45699238/problems-with-adding-reference-to-netstandard-2-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!