2015-10-09 80 views
4

我最近从Windows 8.1 Pro升级到Windows 10 Pro。我还安装了Visual Studio 2015 Professional,并卸载了Visual Studio 2013 Professional。Visual Studio 2015(Windows 10)中的.NET Native编译失败

每当我尝试建立在释放模式在Windows 10应用程序启用了“.NET本地工具链”时,出现两个错误:

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. 

回答

1

好了,我用的是的替代我的机器上的文件夹

C:\Program Files (x86)\MSBuild\Microsoft.NetNative

解决了这个问题,我同事。然后我重新启动了Visual Studio 2015,运行了一个新的版本 - 等voilà - 它的工作原理!

+0

为什么修复Visual Studio 2015的安装不能修复它? – markus

+0

它不适合我.. –

+0

你有可能上传该文件夹以帮助我们吗? – AbsoluteSith

2

这看起来像是几个.Net本地工具链(ilc.exe)之间的不匹配。特别是nutc_driver.exe和rhbind.exe。也许你的机器在某种程度上具有VS的早期版本(从2015年5月起可能VS RC)?修理不起作用有点不幸。

如果有人打这个状态,知道这些工具的版本信息会很有趣。他们住在“C:\ Program Files文件(x86)\ MSBuild \ Microsoft.NetNative \ x86 \ ilc \ tools”下。

+0

在升级到Windows 10之前,我没有安装任何版本的Visual Studio 2015.正如我所说的那样,只安装了Visual Studio 2013。 – markus

+0

对不起,我没有更多的报价。像这样的安装问题是在机器清理完后追逐的熊。很高兴听到你正在整理。 –

相关问题