An error occurred in Visual Studio compilation:
Error 2 The task failed because "Sgen.exe" was not found, or the. NET Framework SDK v2.0 was not installed. The task is registering the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\. NETFramework finds "Sgen.exe" in the "bin" subdirectory under the location specified in the SDKInstallRootv2.0 value. You can resolve this issue by doing one of the following: 1.) Install the. NET Framework SDK v2.0. 2.) Manually set the above registry key to the correct location. 3.) Pass the correct location to the "Toolpath" parameter of the task.
Workaround:
1. From the computer that installs VS2008 or earlier (or other means), go to the following directory and locate "Sgen.exe"
C:\Program Files (x86) \microsoft Visual Studio 8\sdk\v2.0\bin
2. Copy this file to the same directory as the computer where the error was compiled, and the problem can be resolved
SGEN. EXE download: Http://pan.baidu.com/s/1i38l3MX Password: n5kz
The reason is "sgen.exe" is not found, or the. NET Framework SDK v2.0 is not installed