使用 microsoft .net native 1.7 发布版本失败
Release build fails with microsoft .net native 1.7
我在构建要发布的 uwp 项目时出错,这是输出:
1> Generating native code
1> Generating fixups for native code
1>C:\Users\τασος\.nuget\packages\microsoft.net.native.compiler.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.7.0\tools\Microsoft.NetNative.targets(697,5): error : ILT0005: 'C:\Users\τασος\.nuget\packages\microsoft.net.native.compiler.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 ==========
和行
<LoggerBasedExecTask
Condition="'$(UseDotNetNativeLogger)'=='true'"
Application="$(_IlcExePath)"
Parameters="$(_IlcInvocationParameters)"
MessageLog="$(_IlcIntermediateRootPath)ilclog.csv"
UseCommandProcessor="false"
>
<Output TaskParameter="ExitCode" PropertyName="_IlcExitCode" />
</LoggerBasedExecTask>
我不知道错误在哪里,但这很大。每次打开vs2017都会发现一个新bug...
一个解决方案是将 Microsoft.NETCore.UniversalWindowsPlatform
nugget 包降级到 5.2.2
。之后,我能够为商店创建 .appxs 或在 Release 上构建。
我在构建要发布的 uwp 项目时出错,这是输出:
1> Generating native code
1> Generating fixups for native code
1>C:\Users\τασος\.nuget\packages\microsoft.net.native.compiler.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.7.0\tools\Microsoft.NetNative.targets(697,5): error : ILT0005: 'C:\Users\τασος\.nuget\packages\microsoft.net.native.compiler.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 ==========
和行
<LoggerBasedExecTask
Condition="'$(UseDotNetNativeLogger)'=='true'"
Application="$(_IlcExePath)"
Parameters="$(_IlcInvocationParameters)"
MessageLog="$(_IlcIntermediateRootPath)ilclog.csv"
UseCommandProcessor="false"
>
<Output TaskParameter="ExitCode" PropertyName="_IlcExitCode" />
</LoggerBasedExecTask>
我不知道错误在哪里,但这很大。每次打开vs2017都会发现一个新bug...
一个解决方案是将 Microsoft.NETCore.UniversalWindowsPlatform
nugget 包降级到 5.2.2
。之后,我能够为商店创建 .appxs 或在 Release 上构建。