Cannot add assemblies to .Net Core application in Visual Studio 2019

前端 未结 1 1200
终归单人心
终归单人心 2021-01-23 02:26

When I try to add a missing assembly to my project (for unit testing specifically) I noticed that the Assemblies tab is missing in the \"Add Reference\" dialog , see:

相关标签:
1条回答
  • 2021-01-23 02:33

    It is correct behaviour. The Assemblies tab is not available for Net Core projects. You wont be able to add assemblies from your system, because Net Core projects work with dependencies from Nuget. So, to add your references, you need to use the Nuget Package Manager instead.

    1. Right click your project
    2. Choose "Manage Nuget Packages"
    3. Find the package you want to add from the list
    0 讨论(0)
提交回复
热议问题