我最近从Windows 8.1 Pro升级到Windows 10 Pro。我还安装了Visual Studio 2015专业版,并卸载了Visual Studio 2013专业版。
每当我尝试在启用了“ .NET Native工具链”的发布模式下构建Windows 10应用程序时,它都会失败并出现两个错误:
1. RHBIND : error RHB0007: Could not load input file 'D:\Projects\MyProject\obj\x86\Release\ilc\intermediate\MDIL\MyProject.mdilexe'.
2. ILT0005: 'C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\Tools\rhbind.exe @"D:\Projects\MyProject\obj\x86\Release\ilc\intermediate\rhbindargs.MyProject.rsp"' returned exit code 7
同一项目/解决方案在我同事的计算机上完全可以构建(最近也从Windows 8.1 Pro升级到了带有Visual Studio 2015 Professional的Windows 10 Pro)。
我已经尝试多次修复Visual Studio 2015的安装,但是没有运气。
也似乎没有有关退出代码的信息rhbind.exe
。我仔细检查了*.mdilexe
和*.rsp
文件的存在。两者都是绝对创建的,并且不为空...
有没有其他人遇到过这些问题,或者仅仅是我吗?
编辑我应该提到,在Visual Studio中提高输出日志的详细级别不会产生有关错误的更多信息。但是,在第一个错误之后和第二个错误之前紧接有一些警告:
4>STARTPROCESSTASK : warning : Unsupported section type '.tks0' in 'C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\lib\Native\corelib.native.lib(f:\binaries\Intermediate\\FxCore\x86ret\corelib.native\ThunkPoolThunks_x86.obj)', skipping the import of that section.
4>STARTPROCESSTASK : warning : Unsupported section type '.tks1' in 'C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\lib\Native\corelib.native.lib(f:\binaries\Intermediate\\FxCore\x86ret\corelib.native\ThunkPoolThunks_x86.obj)', skipping the import of that section.
4>STARTPROCESSTASK : warning : Unsupported section type '.tks2' in 'C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\lib\Native\corelib.native.lib(f:\binaries\Intermediate\\FxCore\x86ret\corelib.native\ThunkPoolThunks_x86.obj)', skipping the import of that section.
4>STARTPROCESSTASK : warning : Unsupported section type '.tks3' in 'C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\lib\Native\corelib.native.lib(f:\binaries\Intermediate\\FxCore\x86ret\corelib.native\ThunkPoolThunks_x86.obj)', skipping the import of that section.
4>STARTPROCESSTASK : warning : Unsupported section type '.tks4' in 'C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\lib\Native\corelib.native.lib(f:\binaries\Intermediate\\FxCore\x86ret\corelib.native\ThunkPoolThunks_x86.obj)', skipping the import of that section.
4>STARTPROCESSTASK : warning : Unsupported section type '.tks5' in 'C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\lib\Native\corelib.native.lib(f:\binaries\Intermediate\\FxCore\x86ret\corelib.native\ThunkPoolThunks_x86.obj)', skipping the import of that section.
4>STARTPROCESSTASK : warning : Unsupported section type '.tks6' in 'C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\lib\Native\corelib.native.lib(f:\binaries\Intermediate\\FxCore\x86ret\corelib.native\ThunkPoolThunks_x86.obj)', skipping the import of that section.
4>STARTPROCESSTASK : warning : Unsupported section type '.tks7' in 'C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\lib\Native\corelib.native.lib(f:\binaries\Intermediate\\FxCore\x86ret\corelib.native\ThunkPoolThunks_x86.obj)', skipping the import of that section.
好吧,我通过替换文件夹解决了这个问题
C:\ Program档案(x86)\ MSBuild \ Microsoft.NetNative
在我的机器上和同事的机器上。然后,我重新启动了Visual Studio 2015,运行了一个新版本-etvoilà-它起作用了!
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句