Binaries Not Copied for UWP
Hi - I've built a UWP Class Library and added a reference to the PCLStorage NuGet package. But the
- PCLStorage.Abstractions.dll
- PCLStorage.Abstractions.xml
- PCLStorage.dll
- PCLStorage..xml
files are not getting copied to the respective Debug nor Release folders. This is not a problem for Android and iOS libraries.
My UWP project targets Windows 10 (10.0; Build 10586) and the projects.json file specifies { "dependencies": { "Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0", "PCLStorage": "1.0.2" }, "frameworks": { "uap10.0": {} }, "runtimes": { "win10-arm": {}, "win10-arm-aot": {}, "win10-x86": {}, "win10-x86-aot": {}, "win10-x64": {}, "win10-x64-aot": {} } }
I'm trying to package my own NuGet PCL and the missing PCLStorage files should be included. But I don't know where to pick them up from for UWP.
Thanks.
Usually you shouldn't include the PCLStorage binaries in your own NuGet package. Instead, your package should have a dependency on the PCLStorage package.
By default, UWP libraries don't copy dependencies to the output folder. UWP application projects would.
Well that makes MUCH more sense. Thanks for your timely response.