gpt4 book ai didi

tfs - Visual Studio Online Hosted Build Controller 找不到程序集 Microsoft.WindowsAzure.Diagnostics

转载 作者:行者123 更新时间:2023-12-04 20:05:06 25 4
gpt4 key购买 nike

我们使用 VSO 托管的构建 Controller 来运行我们的 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-vs.aspx声明主机仅支持最高 2.3。虽然我们已经有了这座建筑。

我们所有的 Azure SDK 程序集都适用于 2.4 版。它在本地构建,我的机器上没有安装以前版本的 SDK。我们有像这样的绑定(bind)重定向......

<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>

有没有其他人看过这个?

最佳答案

您可以通过使用 Visual Studio 在受影响项目的 Microsoft.WindowsAzure.Diagnostics 引用中设置“特定版本”属性来解决此问题(右键单击引用并在解决方案资源管理器中选择属性)。这将导致构建服务器使用 2.3 版本的程序集。

如果您在 2.4 SDK 中使用任何新的类或方法,这可能不起作用,但它至少为您提供了一个临时解决方案,直到 MS 解决了问题。

这是我的工作引用图片

Specific Version Reference for Azure Diagnostics Assembly

最后,查看链接(真的很旧)以获取有关特定引用版本的更多信息:http://www.codemag.com/article/0507041 ,

关于tfs - Visual Studio Online Hosted Build Controller 找不到程序集 Microsoft.WindowsAzure.Diagnostics,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26499874/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com