Missing Azure SDK 2.2 targets

chris's Avatar


21 Feb, 2014 06:18 PM

I was trying out an Azure project and the build failed trying to locate the Azure SDK 2.2 targets. Any chance to get those added to your images?

  1. Support Staff 1 Posted by Feodor Fitsner on 21 Feb, 2014 06:26 PM

    Feodor Fitsner's Avatar

    Hi Chris,

    Azure SDK 2.2 is there.

    While trying to build Azure Cloud Service project you may get the following (or similar related) error:

    The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\vX.X\Windows Azure Tools\2.X\Microsoft.WindowsAzure.targets" was not found.

    To fix this error on Environment tab of project settings add the following environment variable:

    VisualStudioVersion    12.0

    where 12.0 is the version your Visual Studio (VS 2013 - 12.0, VS 2012 - 11.0, VS 2010 - 10.0).

    I added some more details on this page: http://www.appveyor.com/docs2/build-phase

    Let me know how it goes.

  2. 2 Posted by chris on 21 Feb, 2014 06:56 PM

    chris's Avatar

    Yes, after looking further into the errors I realized that it was looking under the wrong version of VS for the targets and I added the environment variable and it solved the issue. I am sorry about posting so quickly, I should have done some more looking before I did.

    in the case of VS2013 solutions if you ran MSBuild 12.0 you wouldn't have this issue.

    Of course this is a double edged sward because running MSBuild 12.0 against VS 2012 solutions can cause an invalid TargetFrameworkMonikor error on deploy of the generated webdeploy package.

  3. Support Staff 3 Posted by Feodor Fitsner on 21 Feb, 2014 07:00 PM

    Feodor Fitsner's Avatar

    Thanks for the update!

    I agree with you the problem is tightly related to selecting correct msbuild for the given VS version. It's clear starting from VS 2013 we should run msbuild 12.0.

    I'm going to continue discussion in your another thread.

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:38 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac