简体   繁体   中英

How check automatically if there is an update on a package in my local nuget server with the same version

In my company we work on the same app from different teams.

Background

  • I have created a local nuget server
  • Each team build it's own package
  • After pushing to Git-TFS server, something must increase the version number from xyz to xyz+1 inside project-name .nuspec file and also inside each project's packages.config` file using this package.
  • New release will be created ater pushing to Git-TFS server so multiple releases will be created each day.
  • Each team must work on the other team's latest version released packages

Questions

  1. What is the best way to increase the version number in project-name .nuspec file and also in each project's packages.config` file using this package after pushing to Git-TFS? Is there a better way to accomplish my goal?

  2. How do I make each project check for update in a specific packages update in the build process?

1) This is a little dated, but here's an implementation of auto incrementing http://digitaldrummerj.me/Nuget-Auto-Incrementing-Version/

2) Getting the packages to auto-update for you would be a bit trickier, at that point, I would argue that the teams should have some level of communication that they released a new package and what changed

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM