
An assembly,specified in the application dependencies manifest(App.deps.json)was not found:
package:‘ComandLineParser’, version:'2.2.1’
path:’1ib/netstandard1.5/CommardLine.dll’
需要了解一下Publish
build的依赖包都是读本机nuget缓存,放到其他机器,没有包缓存的就炸了
dotnet publish -c Release 应该是bin/publish下 把publish拷过去就行了
默认配置下dotnet build只会输出项目代码的dll,依赖用的是dotnet缓存中的dll,只有dotnet publish才会把依赖的dll一起输出到生成目录。
在项目csproj文件中添加以下配置可以让依赖dll在build命令下也输出到生成目录
<PropertyGroup> <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> </PropertyGroup>
