Skip to content

Retrieving nuget.config files using MSBuild #11464

Answered by zivkan
wuhkuh asked this question in Q&A
Discussion options

You must be logged in to vote

If your project uses PackageReference, then in your obj folder, you'll have a project.assets.json file which will list all the config files in there somewhere. Note that since it's in the obj (intermediate) folder, we don't promise backwards compatibility, we might change the format as needed, although it's very unlikely that we'll break the format, and never have so far (but we have added new information in the past, making old versions of Nuget restore incompatible with new versions of msbuild). If your projects are using packages.config, there's no equivalent. You could add an empty project, that uses PackageReference, just for the project.assets.json file, if getting the list of confi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wuhkuh
Comment options

Answer selected by wuhkuh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants