I'm writing a .NET Core library which targets these frameworks:
"frameworks": {
"netstandard1.3": {},
"uap10.0": {
"buildOptions": { "define": [ "UWP" ] }
}
}
However, I can't declare the following (compiler error "Networking does not exist in Windows namepspace"):
#if UWP
using Windows.Networking;
Windows.Networking works in a UWP app for me but I can't achieve the same in multi-target .NET Core library. Adding Microsoft.NETCore.UniversalWindowsPlatform dependency changes nothing:
"frameworks": {
"netstandard1.3": {},
"uap10.0": {
"dependencies": { "Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2" },
"buildOptions": { "define": [ "UWP" ] }
}
}
What am I missing?