Uwp 使用.NET本机工具链编译在Server 2016中失败,但在Windows 10中成功
我们已经创建了一个UWP项目,该项目在Windows10机器上编译fine.Net本机工具链选项 但是,它在Windows Server 2016标准(即构建服务器)中失败 已尝试更改目标版本,但没有帮助 以下是错误和警告:-Uwp 使用.NET本机工具链编译在Server 2016中失败,但在Windows 10中成功,uwp,.net-native,Uwp,.net Native,我们已经创建了一个UWP项目,该项目在Windows10机器上编译fine.Net本机工具链选项 但是,它在Windows Server 2016标准(即构建服务器)中失败 已尝试更改目标版本,但没有帮助 以下是错误和警告:- C:\Program Files(x86)\MSBuild\Microsoft.NetNative\x86\ilc\ilc Internals.targets(936,5):警告:ILTransform_0005:类型“Windows.ApplicationModel.
- C:\Program Files(x86)\MSBuild\Microsoft.NetNative\x86\ilc\ilc Internals.targets(936,5):警告:ILTransform_0005:类型“Windows.ApplicationModel.Activation.BackgroundActivatedEventArgs”未包含在编译中,但在方法“App.OnBackgroundActivatedEventArgs(BackgroundActivatedEventArgs)”中引用。可能缺少一个程序集
- C:\Program Files(x86)\MSBuild\Microsoft.NetNative\x86\ilc\ilc Internals.targets(936,5):警告:ILTransform_0003:方法“App.d_u14.MoveNext()”将始终引发异常,因为缺少方法“BackgroundActivateEventTargets.get\u TaskInstance()”。可能缺少一个程序集
- C:\Program Files(x86)\MSBuild\Microsoft.NetNative\x86\ilc\ilc Internals.targets(936,5):错误:ILT0021:无法解析方法“System.Void Windows.UI.Xaml.Application.OnBackgroundActivated($ILT$FakeType0\U Windows\U ApplicationModel\U Activation\U BackgroundActivatedEventArgs)”
- C:\Program Files(x86)\MSBuild\Microsoft.NetNative\x86\ilc\ilc Internals.targets(936,5):错误:类型“Windows.ApplicationModel.Activation.BackgroundActivatedEventTargets”未包含在编译中,但在方法“App.OnBackgroundActivatedEventTargets(BackgroundActivatedEventTargets)”中引用。可能缺少一个程序集
- C:\Program Files(x86)\MSBuild\Microsoft.NetNative\x86\ilc\ilc Internals.targets(936,5):错误:由于缺少方法“BackgroundActivatedEventArgs.get\U TaskInstance()”,方法“App.d\uu 14.MoveNext()”将始终引发异常。可能缺少一个程序集