我有问题将我的便携式C#项目转换为.Net标准2.0。将便携式转换为.Net标准本地构建但不使用团队构建
我遵循Adam Pedley在Upgrade PCL to .NET Standard Class Library中概述的方法,最后让所有的东西在本地工作。然而,我们构建服务器上排队时,我面临着以下错误:
C:\Program Files\dotnet\sdk\2.0.3\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets(323,5): error : Assets file 'D:\Builds\Agent-57-01_work\11\s\MyProject\obj\project.assets.json' not found. Run a NuGet package restore to generate this file. [D:\Builds\Agent-57-01_work\11\s\MyProject\MyProject.csproj]
我们构建服务器运行的代理版本2.120.2,并有Visual Studio的15.4.5。安装。
您的构建是否包含NuGet还原或您的MSbuid呼叫?包含'/ restore'参数? –
@MartinUllrich我们将NuGet安装程序任务设置为NuGet 3.0.0版。将其更改为4.0.0可以解决问题。 –