我们正在使用VSO托管的构建控制器来运行我们的CI构建.构建已经开始失败,工作正常.
C:\ Program Files(x86)\ MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets(1697):无法解析此引用.无法找到程序集"Microsoft.WindowsAzure.Diagnostics,Version = 2.4.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35,processorArchitecture = MSIL".检查以确保磁盘上存在程序集.如果您的代码需要此引用,则可能会出现编译错误.
根据http://listofsoftwareontfshostedbuildserver.azurewebsites.net/,此程序集应解析为应包含在主机中的Azure SDK,尽管http://www.visualstudio.com/en-us/get-started/hosted-build- controller-versusaspx表示主机仅支持2.3.我们有这个建筑物.
Azure SDK的所有程序集都适用于2.4版.它在本地构建,并且我的机器上没有安装以前版本的SDK.我们有像这样的绑定重定向...
<dependentAssembly>
<assemblyIdentity name="Microsoft.WindowsAzure.Diagnostics" publicKeyToken="31BF3856AD364E35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.4.0.0" newVersion="2.4.0.0" />
</dependentAssembly>
Run Code Online (Sandbox Code Playgroud)
有没有人见过这个?