1
尝试使用dnx451构建.xproj,因为框架在本地正常工作,但在Visual Studio联机构建中无法正常工作。VSTS上的dnx451构建无法解决依赖关系
登录:
Microsoft .NET Development Utility Clr-x86-1.0.0-rc1-16231
Building DnxLibTests for DNX,Version=v4.5.1
Using Project dependency DnxLibTests 1.0.0
Source: C:\a\1\s\DnxLibTests\project.json
Unable to resolve dependency Microsoft.Dnx.Compilation.Abstractions 1.0.0-rc1-final
project.json
{
"version": "1.0.0-*",
"description": "DnxLibTests Class Library",
"authors": [ "" ],
"tags": [ "" ],
"projectUrl": "",
"licenseUrl": "",
"dependencies": {
"xunit": "2.1.0",
"xunit.runner.dnx": "2.1.0-rc1-build204"
},
"commands": {
"test": "xunit.runner.dnx"
},
"frameworks": {
"dnx451": { }
}
}
你让我朝着正确的方向发展,实际上我已经在使用PreBuild.ps1脚本,但没有检查Restore命令的路径,因为它是类库中的还原而不是asp的src。它工作的网络。 这是到PreBuild.ps1的[链接] https://msdn.microsoft.com/en-us/Library/vs/alm/Build/azure/deploy-aspnet5 – msr