我在构建我的uwp项目时遇到错误,这是输出:
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 ==========
和行
<LoggerBasedExecTask
Condition="'$(UseDotNetNativeLogger)'=='true'"
Application="$(_IlcExePath)"
Parameters="$(_IlcInvocationParameters)"
MessageLog="$(_IlcIntermediateRootPath)ilclog.csv"
UseCommandProcessor="false"
>
<Output TaskParameter="ExitCode" PropertyName="_IlcExitCode" />
</LoggerBasedExecTask>
我不知道错误在哪里,但这是巨大的。每次我打开vs2017我发现一个新的错误......
答案 0 :(得分:2)
解决方案是将Microsoft.NETCore.UniversalWindowsPlatform
nugget包降级为5.2.2
。之后,我能够为商店创建.appxs或者在Release上构建。