Azure Continuous Deployment Error Failed to load Microsoft.WindowsAzure.Packaging file or assembly

Out of nowhere, I started getting this error when I try to deploy my project to a cloud service (using continuous deployment and a hosted build controller.

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Windows Azure Tools\2.5\Microsoft.WindowsAzure.targets (2917): Could not load file or assembly 'Microsoft.WindowsAzure.Packaging, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. 

I found this SO question , but that did not help me.

I also noticed that I didn’t even have a folder:

 C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ 

I only have v10.0, v11.0, v12.0, so I manually created v14.0 and copied the Windows Azure Tools form v12.0 folder, but that didn't help.

EDIT

I upgraded Azure Tools to version 2.6, but the error and error message remains unchanged.

How can i fix this?

+4
azure azure-cloud-services
May 05 '15 at 11:44
source share
4 answers

I had the same error encountered today in Visual Studio Online Host Build Controller. I assume that you use the same thing in your talk about Azure and Continuous Integration.

I noticed that they just released support for Azure SDK 2.6 on the build controller on the last day or so. I feel like this somehow caused a problem.

I updated my cloud project to use 2.6, registered, and everything was fine again. Some details of ccproj:

 <PropertyGroup> <VisualStudioVersion Condition=" '$(VisualStudioVersion)' == '' ">10.0</VisualStudioVersion> <CloudExtensionsDir Condition=" '$(CloudExtensionsDir)' == '' ">$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Windows Azure Tools\2.6\</CloudExtensionsDir> </PropertyGroup> 
+2
May 6 '15 at 17:02
source share

Have you upgraded your Azure SDK for .NET to 2.5.1? I ran into this problem before upgrading the Azure SDK for .NET to 2.5.1

Microsoft recently released the Azure SDK for .NET version 2.6, and I suggest you try this. I believe this should solve your problem.

0
May 05 '15 at 1:50 pm
source share

Upgrade the Azure SDK to version 2.6 and then upgrade the Azure project application.

You can do this in the project properties by clicking the button to upgrade the version of Microsoft Azure Tools from version 2.5.1 to version 2.6.

0
May 6 '15 at
source share

"try adding / p: GenerateBuildInfoConfigFile = false to your msbuild arguments in addition to /p:VisualStudioVersion=12.0, which helped others solve this problem."

from here: https://social.msdn.microsoft.com/Forums/en-US/fc434580-cf81-44eb-9382-cd1b9fc9583a/microsoft-azure-sdk-v26-issue-with-cloud-builds?forum=TFService

0
Jun 25 '15 at 13:27
source share



All Articles