How can I get PackageReference packages to be included with the ClickOnce automatically?
I am trying to convert a ClickOnce application from packages.config to use PackageReferences as I have a good 30+ nuget packages (mostly dependencies) and it it makes it a lot easier to upgrade the few I actually need to reference.
The issue is that once I did that, all the nuget package assemblies are now considered "Prerequisites (Auto)" instead of "Include (Auto)", making ClickOnce deployments skip them. It also gives me the "...must be strong signed in order to be marked as a prerequisite" for any custom nuget packages.
Update:
It turned out that this didn't work at all. Assemblies like System.Runtime was not included by ClickOnce, period. There was no option to include it, and it ended up breaking the deployment (due to a FileNotFoundException for System.Runtime) even after setting all assemblies to Include manually. I had to revert back to packages.config. I'd love to see ClickOnce updated to work with PackageReferences