Visual studio 在Visual Studio 2019中,.net Core 2.1如何将.net Framework程序集添加到项目中
我在Visual Studio 2019和.net Core 2.1.1中工作 我目前正在努力集成Identity Server 4的WsFederation。在我能找到的最新说明中,他提到通过project.json将System.IdentityModel添加到应用程序中。现在在.net核心项目中,Project.json似乎已经被弃用了,我花了很长时间才弄明白如何在我的项目中添加一个奇怪的.net程序集。我是否真的需要将文件复制到项目和引用中,因为这似乎是错误的 我使用的说明:Visual studio 在Visual Studio 2019中,.net Core 2.1如何将.net Framework程序集添加到项目中,visual-studio,visual-studio-2019,project.json,Visual Studio,Visual Studio 2019,Project.json,我在Visual Studio 2019和.net Core 2.1.1中工作 我目前正在努力集成Identity Server 4的WsFederation。在我能找到的最新说明中,他提到通过project.json将System.IdentityModel添加到应用程序中。现在在.net核心项目中,Project.json似乎已经被弃用了,我花了很长时间才弄明白如何在我的项目中添加一个奇怪的.net程序集。我是否真的需要将文件复制到项目和引用中,因为这似乎是错误的 我使用的说明: 似乎都回到
似乎都回到了项目类型。我用AspnetCore创建了这个项目,因此我无法引用任何.net framework程序集,因为一旦做出选择,您就无法返回。但是,如果您专门在.net framework下创建项目,则可以进入核心框架,并托管核心的库。这样我就可以拉入需要继续前进的System.IdentityModel程序集。尝试将
System.IdentityModel
的NuGet包添加到项目中。在Visual Studio中,您可以在Project\Manage-numget-Packages下找到它,
不能在.net核心中使用,只能在.net framework中使用