Release build fails with microsoft .net native 1.7

945 views Asked by At

I have an error while building my uwp project for release, here is the output:

1>  Generating native code
1>  Generating fixups for native code
1>C:\Users\τασος\.nuget\packages\microsoft.net.native.compiler\1.7.0\tools\Microsoft.NetNative.targets(697,5): error : RHBIND : error RHB0016: Import of '' failed: bad file extension (must be .obj or .lib).
1>C:\Users\τασος\.nuget\packages\microsoft.net.native.compiler\1.7.0\tools\Microsoft.NetNative.targets(697,5): error : ILT0005: 'C:\Users\τασος\.nuget\packages\microsoft.net.native.compiler\1.7.0\tools\x64\ilc\Tools\rhbind.exe @"C:\Users\τασος\Documents\Visual Studio 2015\Projects\AuebUnofficial\AuebUnofficial\obj\x64\Release\ilc\intermediate\rhbindargs.ΟΠΑ-AUEB.rsp"' returned exit code 16
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========

and the lines

<LoggerBasedExecTask 
      Condition="'$(UseDotNetNativeLogger)'=='true'"
      Application="$(_IlcExePath)" 
      Parameters="$(_IlcInvocationParameters)" 
      MessageLog="$(_IlcIntermediateRootPath)ilclog.csv"
      UseCommandProcessor="false" 
      >
      <Output TaskParameter="ExitCode" PropertyName="_IlcExitCode" />
    </LoggerBasedExecTask>

I dont know where is the error but this is huge. Everytime i open vs2017 i discover a new bug...

1

There are 1 answers

3
Anastasios Moraitis On BEST ANSWER

A solution is to downgrade the Microsoft.NETCore.UniversalWindowsPlatform nugget package to 5.2.2. After that, i was able to create .appxs for the store or build on Release.