Using external .dll in dot net core

前端 未结 3 1825
北荒
北荒 2020-12-08 02:07

I\'ve my own .dll file that I used to use with Edge.js in nodejs, I\'m trying to use it now with dot net core app, but found no where/no how to get access to it, or define i

3条回答
  •  粉色の甜心
    2020-12-08 02:44

    • .NET Core works with dependencies only via Nuget. How do I import a .NET Core project to another .NET Core project in Visual Studio? and Referencing standard dlls from a .NET Core XUnit project related.

    • Using VS Code you can add references to Nuget package modifying project.json file. Look into "dependencies" section

      An object that defines the package dependencies of the project, each key of this object is the name of a package and each value contains versioning information. For more information, see the Dependency resolution article on the NuGet documentation site.

      Update: Starting from .NET Core 1.1, you need to modify .csproj file by adding section. As example:

      
       
       
      
      
    • In C# using add namespace, not reference to assembly.


提交回复
热议问题