【发布时间】:2017-01-17 05:55:29
【问题描述】:
我正在开发一个 Windows 10 IoT 项目,我想在其中使用 Microsoft.Extensions.Configuration.Json,因此我将它添加到依赖项的 project.json 中:
"dependencies": {
"Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2",
"System.Xml.XmlDocument": "4.0.1",
"System.Xml.XPath.XDocument": "4.0.1",
"Serilog": "2.2.1",
"Serilog.Sinks.RollingFile": "2.2.0",
"Microsoft.Extensions.Configuration.Json": "1.0.0"
},
我可以部署我的解决方案,但我有这个例外:
{"Could not load file or assembly 'System.IO.FileSystem.Watcher,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies.
The system cannot find the file specified.":"System.IO.FileSystem.Watcher,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"}
我尝试将 System.IO.FileSystem.Watcher 添加到我在 project.json 中的依赖项中,但它没有解决问题...
看起来这个人也有类似的问题: UWP application and .NET Core RC2: cannot reference netstandard1.4 packages
有人有想法吗? 谢谢
【问题讨论】: