I found this solution in the MSDN forum. I am merely posting it in my blog because I made this mistake twice and also I thought I should just document it here :-)


You are building a Visual Studio package and using hosted build server to build your code. When you build you get following error.



I initially thought build server does not have VS SDK installed. However, thanks to the answer by Jeff in this forum question I was able to know the actual cause. I am quoting the below text from the forum answer

The TFS build service runs as a 64-bit process on a 64-bit machine, and the VS SDK always gets installed as 32-bit (to work with Visual Studio). Since the registry key that the build process needs is located under HKLM\SOFTWARE\WoW6432Node\Microsoft\VisualStudio\VSIP\11.0 the 64-bit build process looks for it in the wrong location.


  • Open the build definition which is causing the issue and go to “Process” tab
  • Under the “Advanced” node, you will see “MSBuild Platform”
  • Change it from “Auto” to “X86”


About author
Utkarsh Shigihalli
Utkarsh Shigihalli
Utkarsh is passionate about software development and has experience in the areas of Azure, Azure DevOps, C# and TypeScript. Over the years he has worked as an architect, independent consultant and manager in many countries including India, United States, Netherlands and United Kingdom. He is a Microsoft MVP and has developed numerous extensions for Visual Studio, Visual Studio Code and Azure DevOps.
We Are
  • onlyutkarsh
    Utkarsh Shigihalli
    Microsoft MVP, Technologist & DevOps Coach

  • arora_tarun
    Tarun Arora
    Microsoft MVP, Author & DevOps Coach at Avanade

Do you like our posts? Subscribe to our newsletter!
Our Book