netcore项目引用dll包,分如下三种:

1、引用网络包

从nuget获取,然后引入,使用命令:dotnet add package 包名

然后:dotnet restore

 

2、引用同解决方案的类库包

在项目文件.csproj添加项目引用:

<ItemGroup>
<PackageReference Include="RabbitMQ.Client" Version="5.1.0" />
<ProjectReference Include="..\Instructure\Instructure.csproj" />
</ItemGroup>
 
3、引用其他项目编译好的类库包
与第一种方式类似,先打包好类库,然后设置好包的搜索路,然后使用“dotnet add package 包名”进行安装

相关文章:

  • 2021-05-25
  • 2021-11-15
  • 2022-12-23
  • 2021-05-02
  • 2021-08-09
  • 2021-12-28
猜你喜欢
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
  • 2021-04-12
相关资源
相似解决方案