[英]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.