问题
As you know that your TFS Preivew does not support for Azure SDK 1.8 so We are using On-permises TFS build controller to build our project.
During Azure Continous Inegration deployment build we are getting this error
========================================
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.
========================================
We have updated Storage library to version 2.0 using nuget but still we are getting this error.
回答1:
I received this solution from TFS support. THis isn't working since upgrading to TFS 2013 though.
To fix the assembly loading error, you need to copy
"C:\Program Files\Microsoft SDKs\Windows Azure.NET SDK\2012-06\bin\Microsoft.WindowsAzure.StorageClient.dll"
To
C:\Program Files\Microsoft Team Foundation Server 12.0\Tools
On the build machine and restart the service.
回答2:
Turn on Detailed or Diagnostic Logging Verbosity to determine if Microsoft.WindowsAzure.StorageClient
or one of it's dependents are missing. If you are able to compile locally, you could have the assembly installed in your local GAC but not on the build server.
来源:https://stackoverflow.com/questions/13710916/tfs-build-controller-could-not-load-file-or-assembly-microsoft-windowsazure