We are switching to PackageReferences for most of our projects because we see some benefits in doing so. This has one small drawback. In previous projects we embedded the packages.config file in our assemblies so that it was easy to see which nugets that assembly had been compiled against (using some code to extract and display it of course). (which comes handy if you have many teams working on the same code base) We would like to have a similar functionality in our projects that use PackageReferences. In a naive way we would generate a file "like" Packages.Config and embed it into our assemblies. But I don't really know how to start on this. Do I need to write an MSBuild task or is there a simpler way to do this ?
tx, W