1,
错误 397 Task could not find "sgen.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 Common
解决办法是在在项目的属性设置窗口中把 Generate serialization assembly: 设置为 auto。
报错的项目右键-属性-生成-生成序列化程序集-改成自动
2,
错误 836 Task could not find "LC.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 BaseClass
我这边是因为用了DevExpress控件,因为没有注册导致检查licenses.licx时出错,将文件从项目中排除再重新编译即可。