Visual Studio 2017 won't load .NET Framework references in .NET Standard library

后端 未结 5 1162
野趣味
野趣味 2021-01-11 23:33

I\'ve installed Visual Studio 2017. I have a class library in the new .NET Standard format, which is able to be used by both .NET Framework and .NET Core. But when I go to <

5条回答
  •  借酒劲吻你
    2021-01-11 23:44

    As an alternative, you can use the .NET Standard Library from Nuget Package Manager to handle this issue:

    The message in the Add Reference window for .NET Framework is expected. When you create a .NET Standard library, the NETStandard.Library metapackage is automatically referenced during project creation. It is a set of standard .NET APIs that are recommended to be used and supported together. This includes all of the APIs in the NETStandard.Platform package, plus additional libraries that are core to .NET, but built on top of NETStandard.Platform.

    This means we don’t need to need add references individually.

提交回复
热议问题