简体   繁体   English

Azure连续部署-Azure SDK版本要求

[英]Azure Continuous Deployment - Azure SDK Version Requirement

When setting up Azure Continuous Deployment ( AzureContinuousDeployment.11.xaml ) build template with our own hosted TFS 2012 Build Controller - it seems that the workflow activity is bound to a specific version of WindowsAzure.StorageClient . 使用我们自己托管的TFS 2012构建控制器设置Azure连续部署AzureContinuousDeployment.11.xaml生成模板时-工作流活动似乎绑定到特定版本的WindowsAzure.StorageClient Any idea why we are getting this Compilation Exception even though we have the Azure SDK 2.4 installed on the build controller? 您知道即使在构建控制器上安装了Azure SDK 2.4时,为什么也会收到此编译异常的想法吗?

WF Activity: Deploy application to Azure - Compilation Error WF活动:将应用程序部署到Azure-编译错误

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. 异常消息:无法加载文件或程序集“ Microsoft.WindowsAzure.StorageClient,版本= 1.7.0.0,区域性=中性,PublicKeyToken = 31bf3856ad364e35”或其依赖项之一。 The system cannot find the file specified. 该系统找不到指定的文件。 (type FileNotFoundException) Exception Stack Trace: at System.Activities.Statements.Throw.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation) (类型FileNotFoundException)异常堆栈跟踪:位于System.Activities.CodeActivity.InternalExecute(位于System.Activities.Statements.Throw.Execute(CodeActivityContext上下文)处) .ExecuteBody(ActivityExecutor执行程序,BookmarkManager书签管理器,位置resultLocation)

Our VSO project uses Azure SDK 2.4 , but this is separate from the portion that uploads the CSPACK publish file ( .csx ) to the Azure Blob Storage for the Azure Cloud App . 我们的VSO项目使用Azure SDK 2.4 ,但这与将CSPACK发布文件( .csx )上传到Azure云应用程序Azure Blob存储的部分不同。

The build template activity DeployAzureCloudApp from Microsoft.TeamFoundation.Deployment.Worflow.dll references Microsoft.WindowsAzure.StorageClient.dll 1.7.0.0 . 来自Microsoft.TeamFoundation.Deployment.Worflow.dll的构建模板活动DeployAzureCloudApp引用了Microsoft.WindowsAzure.StorageClient.dll 1.7.0.0

To work around this - we must copy the assembly to the TFS Build Controller folder on the server ( where the TFSBuildServiceHost.exe resides ). 要解决此问题,我们必须将程序集复制到服务器( TFSBuildServiceHost.exe所在的服务器)上的TFS Build Controller文件夹中 Another option would be to GAC the assembly. 另一种选择是GAC组装。

Source: Microsoft.WindowsAzure.StorageClient.dll 资料来源: Microsoft.WindowsAzure.StorageClient.dll

Azure SDK Path: c:\\Program Files\\Microsoft SDKs\\Azure.NET SDK\\v2.5\\bin Azure SDK路径: c:\\ Program Files \\ Microsoft SDKs \\ Azure.NET SDK \\ v2.5 \\ bin

Target: Microsoft.WindowsAzure.StorageClient.dll 目标: Microsoft.WindowsAzure.StorageClient.dll

TFS 2012 Path : c:\\Program Files\\Microsoft Team Foundation Server 11.0\\Tools TFS 2012路径 :c:\\ Program Files \\ Microsoft Team Foundation Server 11.0 \\ Tools
TFS 2013 Path : c:\\Program Files\\Microsoft Team Foundation Server 12.0\\Tools TFS 2013路径 :c:\\ Program Files \\ Microsoft Team Foundation Server 12.0 \\ Tools

Evidently the assembly resolution isn't looking for it outside the Tools directory - it seems to be specifying an absolute path to locate it. 显然,程序集分辨率不是在Tools目录之外寻找它-似乎是在指定用于定位它的绝对路径。 Fusion assembly log never shows it probing for this assembly. Fusion程序集日志从不显示它正在对此程序集进行探测。

Powershell to Reproduce the FileNotFoundException Error Powershell重现FileNotFoundException错误

([System.Reflection.Assembly]::LoadFrom("Microsoft.WindowsAzure.StorageClient, Version=1.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35l")).FullName

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM