Open Cheelax opened 7 years ago
CC @ericstj @ianhays
I take it this is a UAP app? FileSystem.Watcher isn't supported for UAP. The Windows APIs it needs to call are not available to UAP apps. You should have seen an error from NuGet after you added that to your project.
Here is what I see:
Error System.IO.FileSystem.Watcher 4.0.0 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.
Error One or more packages are incompatible with UAP,Version=v10.0 (win10-arm-aot).
...
Those errors mean that the package is not compatible with UAP.
@ericstj any idea if there is a version of Microsoft.Extensions.Configuration.Json package that can work in UAP? it looks from the thread System.IO.FileSystem.Watcher is just a problem because Microsoft.Extensions.Configuration.Json is referencing it.
Hi everybody, I'm working on a windows 10 IoT project where I want to use Microsoft.Extensions.Configuration.Json so I added it in my project.json in the dependencies:
I can deploy my solution but I have this exception:
I tried adding System.IO.FileSystem.Watcher to my dependencies in project.json but it didn't solve the problem...
It looks like this person has a similar problem: http://stackoverflow.com/questions/37365216/uwp-application-and-net-core-rc2-cannot-reference-netstandard1-4-packages
Somebody has an idea? Thank you