Built-in .NET compilation in Visual Studio 2015 (Windows 10) does not work

I recently upgraded from Windows 8.1 Pro to Windows 10 Pro. I also installed Visual Studio 2015 Professional and uninstalled Visual Studio 2013 Professional.

Whenever I try to create a Windows 10 application in release mode with ".NET Target Chain" enabled, it fails with two errors:

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

The same project / solution is completely suitable for my computer colleague (also recently upgraded from Windows 8.1 Pro to Windows 10 Pro with Visual Studio 2015 Professional).

I already tried to restore the installation of Visual Studio 2015 several times without any luck.

There is also no information about the exit code rhbind.exe. I double checked the presence of files *.mdilexeand *.rsp. Both of them are definitely created and not empty ...

Has anyone else had these problems or is it just me?

EDIT I must mention that increasing the level of detail of the output log in Visual Studio does not provide more error information. However, there are some warnings that appear immediately after the first and immediately before the second error:

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.
+4
source share
2 answers

Well, I solved the problem by replacing the folder

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

in my car with my colleague. Then I restarted Visual Studio 2015, launched the new build-et voilà - it works!

+1
source

.Net Native toolchain (ilc.exe). , nutc_driver.exe rhbind.exe. , - rhbind VS ( , VS RC ~ 2015 ?). , .

- , . "C:\Program Files (x86)\MSBuild\Microsoft.NetNative\x86\ilc\tools".

+2

Source: https://habr.com/ru/post/1610895/


All Articles