简体   繁体   English

UWP app的UniversalApiContract版本

[英]UniversalApiContract version for UWP app

My UWP app targets Windows 10 Build 10586 and contains a WebView XAML-control. 我的UWP应用针对Windows 10 Build 10586并包含WebView XAML控件。 However, meanwhile the UniversalApiContract 3.0.0.0 is available on this target configuration, the compiler resolves the WebView to the assembly UniversalApiContract with version 2.0.0.0. 但是,与此目标配置同时可以使用UniversalApiContract 3.0.0.0,但编译器会将WebView解析为版本2.0.0.0的程序集UniversalApiContract。 This version of the control has several shortcomings such as the lack of support for local files through the ms-appdata:/// protocol. 此版本的控件有一些缺点,例如缺少通过ms-appdata:///协议支持的本地文件。

How do I change this and force the compiler to use the newer version? 我该如何更改并强制编译器使用较新的版本? In the references, I only get the message that this is a UWP app and therefore all UWP is already registered as references, no configuration option. 在引用中,我仅收到消息,这是一个UWP应用程序,因此所有UWP已被注册为引用,没有配置选项。

Just found out by myself: I was using a UWP library where the target version was set to Build 10586. Even though the target version of the app was set to Build 14393 (Windows Anniversary), this made the compiler to use the old libraries. 我自己发现:我正在使用UWP库,目标版本设置为Build10586。即使应用程序的目标版本设置为Build 14393(Windows Anniversary),也使编译器可以使用旧的库。

The solution was therefore to set the target version of all components to Windows 10 Anniversary, even though the minimum version is still Build 10586. 因此,解决方案是将所有组件的目标版本设置为Windows 10 Anniversary,即使最低版本仍为Build 10586。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在应用程序设置中显示UWP应用程序的版本信息 - Displaying version information of UWP application in App settings UWP应用发布版本挂在初始屏幕上吗? - UWP app release version hangs on splash screen? UWP 应用发行版不包含资产 - Release version of UWP app does not contain assets 更新现有的UWP软件包会删除旧版本的应用程序数据 - Updating existing UWP package deletes app data of the older app version 如何使 UWP 应用程序与每个目标版本兼容 - How to make the UWP app compatible with every target version Windows 10 Universal App - 类型存在于“Windows.Foundation.UniversalApiContract”中 - Windows 10 Universal App - Type exists in both “Windows.Foundation.UniversalApiContract” .netstandard库和UniversalApiContract - .netstandard library and UniversalApiContract 在UWP中指定依赖版本 - Specify dependency version in UWP 侧面加载的UWP应用正在启动先前由其他用户安装的较旧版本的应用 - Sideloaded UWP app is launching the older version of the app previously installed by another user 如何修复 UWP 应用发布版本中的 MySQL.Connection.Open() 错误? - How to fix MySQL.Connection.Open() error in release version of a UWP app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM