Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compilation issue in Visual Studio 12 Professional with a C# project

The project worked fine in Visual Studio 2010, and we upgraded to Visual Studio 2012; however, now it does not compile.

We get the following error:

Error 2 Task could not find "AL.exe" using the SdkToolsPath "" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools-x86". Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed PROJECT_NAME

Does anyone how to solve this issue?

I am on Windows 2008 R2 SP1 with .NET 4.5 installed. I did not install .NET 4 directly, I used the .NET 4.5 installer.

like image 501
user1460904 Avatar asked Aug 30 '12 08:08

user1460904


1 Answers

I fixed this by installing "Windows Software Development Kit (SDK) for Windows 8" from http://msdn.microsoft.com/en-us/windows/hardware/hh852363.aspx

I was confused by the title - I'm on Windows 7 - but it worked.

like image 50
user489998 Avatar answered Sep 28 '22 22:09

user489998