Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

We have quite a few solutions/projects in separate repositories, so we use a local NuGet source (in our dev machine) for development.

During development we do the changes, build, pack the .nupkg and then copy the file to our Local Nuget folder (from our local NuGet source).

I would like to know if it is possible to copy the .nupkg files after a pack was done automatically, by configuring NuGet or VS 2022 and not the project.
Doing this at the project level would mean too many changes because we have a lot of them.

Any suggestions?

You must be logged in to vote

Replies: 3 comments

Comment options

I would LOVE to know if there is some best practice outhere, because I'm in your same situation. I found a solution, I made a Directory.Build.props that can be really useful for you (with some MSBuild directives you can achieve what you ask), but I was asking to myself if there is a better and out-of-the-box way to achieve that.

Moreover, I have a a lot of repositories, each one dedicated to one nuget package... so, copy-paste this Directory.Build.props is a solution, but I would like to find a way to centralize also this file.

You must be logged in to vote
0 replies
Comment options

The MSBuild project SDK Artifacts might work for you. You give it file paths to stage for you after a build and it copies them.

You must be logged in to vote
0 replies
Comment options

Hi @MarcoLLeite, NuJet is a project that could help you achieve what you are looking for. Check it out :)

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.