netcore:Could not load file or assembly 系统找不到指定的文件

场景:DLL文件已经单独引入了进来,代码编译正常,但运行程序报错。操作如下:

1、把该文件生成属性改为:

 2。修改host的配置文件:

  host.csproj中手动增加代码:ItemGroup节点下:

 <PackageReference Include="ToolGood.Words" Version="3.0.1.2" />

版本号对应于:

猜你喜欢

转载自www.cnblogs.com/25miao/p/12935955.html