我已经将我的项目从2.0重新编译到4.5.2,并且构建后事件是:
错误1尝试加载格式不正确的程序集:d:\ projects \ samplekey \ samplekey \ bin \ release \ samplekey.dll。 D:\ Projects \ SampleKey \ SampleKey \ EXEC
错误2:命令"" C:\ Program Files(x86)\ Microsoft SDKs \ Windows \ v7.0A \ Bin \ sgen.exe" / force" D:\ Projects \ SampleKey \ SampleKey \ bin \ Release \ SampleKey.dll""退出代码1
问题是什么。有什么想法?。
答案 0 :(得分:0)
解决了构建错误:将“C:\ Program Files(x86)\ Microsoft SDKs \ Windows \ v7.0A \ Bin \ sgen.exe”更改为C:\ Program Files(x86)\ Microsoft SDKs \ Windows \ v8 .1A \ bin \ NETFX4.5.1 Tools \ sgen.exe