I get the following error when trying to create my project in Visual Studio 2008 Professional Edition:
The task could not be completed because "sgen.exe" was not found or the correct Microsoft Windows SDK was not installed. The task searches for "sgen.exe" in the "bin" subdirectory under the location specified in the InstallationFolder value of the HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Microsoft SDK \ Windows \ v6.0A registry key. You can solve the problem by doing one of the following:
- Install the Microsoft Windows SDK for Windows Server 2008 and the .NET Framework 3.5.
- Install Visual Studio 2008.
- Manually install the specified registry key in the right place.
- Pass the correct location to the "ToolPath" parameter of the task.
I tried downloading the Microsoft Windows SDK for Windows Server 2008 and the .NET Framework 3.5 and still getting the error. I also tried to download the Windows 7 SDK and .NET Framework 3.5 and all the same result.
I also tried to manually modify the registry to modify the InstallationFolder, and I tried to restore the installation of Visual Studio.
The project was originally created in Windows XP, and I'm trying to compile it on a reformatted machine running Windows 7 Enterprise.
Kinze source share