当引用多个API扩展时,无法在"Release"中构建W10 UWP应用程序

tip*_*ipa 2 c# windows-10 uwp

在我的Windows 10 Universal应用程序中,我引用Windows Mobile Extensions for the UWP了以及Windows Desktop Extensions for the UWP.一切运行良好,并在"调试"中编译,但尝试在"发布"中编译时出现以下错误.当仅引用一个扩展时,该应用程序也会在"发布"中编译.

Fehler Der Befehl""C:\ Program Files(x86)\ MSBuild\Microsoft.NetNative\x86\ilc\ilc.exe"/ in:"C:\ Users\myName\PROJECTS\myApp\myApp\obj\x86\Release\ilc\in"/ out:"C:\ Users\myName\PROJECTS\myApp\myApp\bin\x86\Release\ilc"/ intermediatespath:"C:\ Users\myName\PROJECTS\myApp\myApp\obj\x86\release\ilc\intermediate"/ v:normal/keepintermediates:true/buildtype:ret /exename:"myApp.exe"/ makepripath:"C:\ Program Files(x86)\ Windows Kits\10\bin\x64\MakePri .exe"/ appPriProjectRoot:"C:\ Users\myName\PROJECTS\myApp\myApp"/ rcpath:"C:\ Program Files(x86)\ Windows Kits\10\bin\x86\rc.exe"/ targetplatformsdklibpath:" C:\ Program Files(x86)\ Windows Kits\10\lib\10.0.10240.0\um"/ targetplatformsdkmetadatapath:"C:\ Users\myName\PROJECTS\myApp\myApp\obj\x86\Release\ilc\in\WinMetadata"/targetframeworkpath:"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319"/ externalReferencePath:"C:\ Program文件(x86)\ Windows Kits\10\References\Windows.ApplicationModel.Activation.ActivatedEventsContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.ApplicationModel.Activation. ActivationCameraSettingsContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.ApplicationModel.Activation.ContactActivatedEventsContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\Windows Kits\10\References\Windows.ApplicationModel.Activation.WebUISearchActivatedEventsContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.ApplicationModel.Background.BackgroundAlarmApplicationContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.ApplicationModel. Calls.CallsPhoneContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.ApplicationModel.Calls.CallsVoipContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files( x86)\ Windows Kits\10\References\Windows.ApplicationModel.Calls.LockScreenCallContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.ApplicationModel.Resources.Management.ResourceIndexerContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.ApplicationModel.Search.Core.SearchCoreContract\1.0.0.0"/ externalReferencePath:" C:\ Program Files(x86)\ Windows Kits\10\References\Windows.ApplicationModel.Search.SearchContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows. ApplicationModel.SocialInfo.SocialInfoContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.ApplicationModel.Wallet.WalletContract\1.0.0.0"/ externalReferencePath:"C:\ Program文件(x86)\ Windows Kits\10\References\Windows.Devices.Custom.CustomDeviceContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Devices.Portable.PortableDeviceContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Devices. Printers.Extensions.ExtensionsContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Devices.Printers.PrintersContract\1.0.0.0"/ externalReferencePath:"C:\ Program文件(x86)\ Windows Kits\10\References\Windows.Devices.Scanners.ScannerDeviceContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Devices.SmartCards. SmartCardBackgroundTriggerContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Devices.SmartCards.SmartCardEmulatorContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Devices.Sms.LegacySmsApiContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10 \引用\ Windows.Embedded.DeviceLockdown.DeviceLockdownContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Gaming.Preview.GamesEnumerationContract\1.0.0.0"/ externalReferencePath:" C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Globalization.GlobalizationJapanesePhoneticAnalyzerContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Graphics. Printing3D.Printing3DContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Management.Deployment.Preview.DeploymentPreviewContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Management.Workplace.WorkplaceSettingsContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files( x86)\ Windows Kits\10\References\Windows.Media.Capture.AppCaptureContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Media.Capture.CameraCaptureUIContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Media.Devices.CallControlContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows套件\ 10\References\Windows.Media.MediaControlContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Media.Playlists.播放列表合同\ 1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Media.Protection.ProtectionRenewalContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\Windows Kits\10\References\Windows.Networking.NetworkOperators.LegacyNetworkOperatorsContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Networking.NetworkOperators.NetworkOperatorsFdnContract\1.0. 0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Networking.Sockets.ControlChannelTriggerContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Phone.PhoneContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Phone.StartScreen.DualSimTileContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Security. EnterpriseData.EnterpriseDataContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Security.ExchangeActiveSyncProvisioning.EasContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files( x86)\ Windows Kits\10\References\Windows.Services.Maps.GuidanceContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.Services.Maps.LocalSearchContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.System.Profile.ProfileHardwareTokenContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.System.Profile.ProfileRetailInfoContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10 \参考\ Windows.System.Profile.SystemManufacturers.SystemManufacturersContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.System.UserProfile.UserProfileContract\1.0.0.0"/ externalReferencePath :"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.System.UserProfile.UserProfileLockScreenContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.UI.ApplicationSettings.ApplicationsSettingsContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.UI.Core.AnimationMetrics.AnimationMetricsContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows. UI.Core.CoreWindowDialogsContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows.UI.WebUI.Core.WebUICommandBarContract\1.0.0.0"/ externalReferencePath:"C:\Program Files(x86)\ Windows Kits\10\References\Windows.UI.Xaml.Hosting.HostingContract\1.0.0.0"/ externalReferencePath:"C:\ Program Files(x86)\ Windows Kits\10\References\Windows. Web.Http.Diagnostics.HttpDiagnosticsContract\1.0.0.0"/ RdXmlPath:"C:\ Program Files(x86)\ MSBuild\Microsoft.NetNative\LibraryXML"/ suppressPDBWarnings:true/AllowNoManagedCode/UseCustomFramework"/ logger:CsvLogger; 4288; 2796""wurde mit dem Code 1004 beendet.

Mam*_*toh 5

看来当前的Win10 SDK 10240存在一些关于发布的问题 - 它意味着.NET Native启用 - 构建.

这个链接可以帮到你.在我的情况下,我已成功使用更新的.target文件进行发布构建.

RTM已知问题:发布配置无法在通用Windows应用程序中使用桌面和移动扩展SDK构建

2015年10月6日编辑 - 似乎问题已由SDK 1.1修复.

Win10 Tools 1.1中的.NET和UWP有什么新功能