TFS构建控制器:“无法加载文件或程序集'Microsoft.WindowsAzure.StorageClient,Version = 1.7.0.0”

时间:2012-12-04 20:00:10

标签: tfs msbuild tfsbuild

如您所知,您的TFS Preivew不支持Azure SDK 1.8,因此我们使用On-permises TFS构建控制器来构建我们的项目。

在Azure Continous Inegration部署构建期间,我们收到此错误

========================================
Exception Message: Could not load file or assembly 'Microsoft.WindowsAzure.StorageClient, Version=1.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. 
========================================

我们已使用nuget将存储库更新到版本2.0,但我们仍然收到此错误。

2 个答案:

答案 0 :(得分:3)

我从TFS支持中收到了此解决方案。自从升级到TFS 2013后,这种方法无效。

要修复装配加载错误,您需要复制

“C:\ Program Files \ Microsoft SDKs \ Windows Azure.NET SDK \ 2012-06 \ bin \ Microsoft.WindowsAzure.StorageClient.dll”

C:\ Program Files \ Microsoft Team Foundation Server 12.0 \ Tools

在构建计算机上重新启动服务。

答案 1 :(得分:0)

启用详细或诊断记录详细程度,以确定是否缺少Microsoft.WindowsAzure.StorageClient或其中一个家属。如果您能够在本地编译,则可以在本地GAC中安装程序集,但不能在构建服务器上安装程序集。

TFS Logging Verbosity