C# UWP应用程序和.NET Core RC2:无法引用netstandard1.4包

C# UWP应用程序和.NET Core RC2:无法引用netstandard1.4包,c#,.net,uwp,dnx,windows-10-iot-core,C#,.net,Uwp,Dnx,Windows 10 Iot Core,我有一个使用共享代码库运行UWP客户端应用程序、UWP IOT应用程序和.NET核心应用程序的场景。 在.NET Core RC1中,我构建了一个类库(包),并使用“dotnet5.4”作为该库的基本框架 使用“生成生成生成输出”,我可以从.NET核心应用程序(控制台)引用创建的nuget包,并使用变通方法(从%local%.dnx->%local%.nuget复制包),UWP应用程序也可以引用和使用该包 现在,在RC2中,情况发生了一些变化,我再次能够完美地使用.NET核心控制台应用程序使用升

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

使用“生成生成生成输出”,我可以从.NET核心应用程序(控制台)引用创建的nuget包,并使用变通方法(从%local%.dnx->%local%.nuget复制包),UWP应用程序也可以引用和使用该包

现在,在RC2中,情况发生了一些变化,我再次能够完美地使用.NET核心控制台应用程序使用升级的库(在项目文件中升级的工具,对project.json、netstandard1.4的更改(因为1.5不适用于UAP10))

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

"[...] provides a compile-time reference assembly [...] but there is no run-time assembly compatible with [...]"
错误

环顾四周后,我尝试隔离问题,发现我甚至无法添加对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.
Some packages are not compatible with UAP,Version=v10.0 (win10-arm).
Some packages are not compatible with UAP,Version=v10.0 (win10-x86-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-x86.
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-x86-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-arm.
Some packages are not compatible with UAP,Version=v10.0 (win10-x64).
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-aot.
Some packages are not compatible with UAP,Version=v10.0 (win10-x86).
Some packages are not compatible with UAP,Version=v10.0 (win10-arm-aot).
我有一个最小的解决方案来重现上传的问题

我没有对空白UWP模板做任何更改,除了项目中的依赖项。JSON:

"dependencies":
{
    "Microsoft.ApplicationInsights": "2.1.0-beta4",
    "Microsoft.ApplicationInsights.PersistenceChannel": "2.0.0-beta3",
    "Microsoft.ApplicationInsights.WindowsApps": "1.1.1",
    "Microsoft.NETCore.Platforms": "1.0.1-rc2-24027",
    "Microsoft.NETCore.UniversalWindowsPlatform": "5.1.0",
    "NETStandard.Library": "1.5.0-rc2-24027",

    "System.IO.FileSystem.Watcher": "4.0.0-rc2-24027"
},
注意:我已将Microsoft.NETCore.UniversalWindowsPlatform更新为最新版本。我添加了NETStandard.Library和Microsoft.NETCore.Platforms

非常感谢您的帮助! 提前谢谢
-Simon

System.IO.FileSystem.Watcher当前在UWP中不受支持。现代SDK没有公开我们实现它所需的底层windows API(ReadDirectoryChanges)

-Eric,.NET团队