Referencing a .NET Standard library from a Windows Class Library

后端 未结 3 1340
鱼传尺愫
鱼传尺愫 2020-12-14 08:57

There are two projects in my solution currently: a Windows Class Library (targeting .NET Framework 4.6.1) and another class library that targets .NE

3条回答
  •  没有蜡笔的小新
    2020-12-14 09:30

    You can not use some libraries in PCL projects because it is not built as a PCL and it is not cross platform. Some namespace is unavailable in PCL projects and it is not listed here.

    The following assemblies are available within a Portable Class Library project:

    mscorlib.dll

    System.dll

    System.Core.dll

    System.Xml.dll

    System.ComponentModel.Composition.dll

    System.Net.dll

    System.Runtime.Serialization.dll

    System.ServiceModel.dll

    System.Xml.Serialization.dll

    System.Windows.dll (from Silverlight)

    However, not all of these assemblies are supported on all platforms.

提交回复
热议问题