Bitesized tidbits for building Modern (Metro) apps.
My UWP Nuget Package is Missing a File?
July 30, 2015Posted by on
When creating a nuget package that’s intended for a UWP, you’d be excused for creating your package in the same way you always have done, you include the new uap10.0 TFM (Target Framework Moniker) and drop your dll file(s) in there. This is 95% of it, but there’s a sneaky extra 5% that you still need to do, otherwise, whilst your package will still be valid, and will still get pulled into a UWP project, that project won’t be able to build.
Note that rd.xml file. That’s the file you’re missing. This file is required if you’re doing anything special with .NET Native builds, but more info on that can actually be read in the xml itself.
That xml file needs to live in uap10.0\< PROJECTNAME >\Properties\< PROJECTNAME >.rd.xml
Pop that in and then your package is good to go.