Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Generate "Packages.config"-like structure from PackageReferences in the csproj file

$
0
0

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


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>