小编lab*_*lle的帖子

UWP应用程序和.NET Core RC2:不能引用netstandard1.4软件包

我有一个场景,我使用共享代码库运行UWP客户端应用程序,UWP IOT应用程序和.NET Core应用程序.在.NET Core RC1中,我构建了一个类库(Package),并使用"dotnet5.4"作为该库的基础框架.

使用"生成构建输出"我可以从.NET Core应用程序(控制台)引用创建的nuget包并使用解决方法(从%local%.dnx - >%local%.nuget复制包)UWP应用程序能够参考并使用该包.

现在在RC2中,事情发生了一些变化,我再次能够使用已升级的库(在项目文件中升级的工具,更改为project.json,netstandard1.4(因为1.5根据不能与UAP10一起使用))完美地使用.NET Core控制台应用程序.

对于UWP我无法添加库,因为我得到了几十个臭名昭着的

"[...] provides a compile-time reference assembly [...] but there is no run-time assembly compatible with [...]"
Run Code Online (Sandbox Code Playgroud)

错误.

经过一些环顾四周,我试图找出问题并发现我甚至无法添加对System.IO.FileSystem.Watcher的引用,原因如下:

System.IO.FileSystem.Watcher 4.0.0-rc2-24027 provides a compile-time reference assembly for System.IO.FileSystem.Watcher on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-arm-aot.
Some packages are not compatible with UAP,Version=v10.0 (win10-x64-aot).
System.IO.FileSystem.Watcher 4.0.0-rc2-24027 provides a compile-time reference assembly for System.IO.FileSystem.Watcher on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x64. …
Run Code Online (Sandbox Code Playgroud)

.net c# dnx windows-10-iot-core uwp

11
推荐指数
1
解决办法
815
查看次数

资源价值冲突

我正在开发一个Windows 10 IoT项目(所以内置在uwp中).在开始时我创建了应用程序作为一个空白的应用程序(通用),但当我尝试构建它时,我有2个错误:

处理资源因错误而失败:多次输入

资源'Files/MainPage.xbf的值冲突

这2个错误来自文件

MakePri

我不明白这个问题以及如何解决它,因为我的项目中只有一个MainPage ...

windows-10-iot-core uwp

6
推荐指数
1
解决办法
1293
查看次数

标签 统计

uwp ×2

windows-10-iot-core ×2

.net ×1

c# ×1

dnx ×1