简体   繁体   English

如何自动检查本地nuget服务器上具有相同版本的软件包是否有更新

[英]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 我已经创建了本地nuget服务器
  • 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. 推送到Git-TFS服务器后, 必须project-name .nu​​spec file and also inside each project's使用此软件包的file and also inside each project's packages.config`文件中,将版本号从xyz增加到xyz+1
  • New release will be created ater pushing to Git-TFS server so multiple releases will be created each day. 新版本将在推送到Git-TFS服务器时创建,因此每天将创建多个版本。
  • 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? 在推送到Git-TFS之后,使用此软件包在project-name .nu​​spec file and also in each project's packages.config`文件中增加版本号的最佳方法是什么? 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/ 1)这有点过时了,但这是自动递增的实现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 2)让软件包自动更新会比较棘手,在那一点上,我认为团队应该进行一定程度的沟通,以确保他们发布了新软件包并进行了更改

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在未安装 Nuget 或 Visual Studio 的 Web 服务器上安装、更新、注册 Nuget package? - How do I Install, Update, Register a Nuget package on the Web Server that does not have Nuget or Visual Studio installed? 有没有一种方法可以在构建时自动安装特定版本的Nuget软件包? - Is there a way to automatically install a specific version of a Nuget Package at build time? Nuget package 版本冲突 .net 内核虽然版本相同 - Nuget package version conflict .net core though having same version 增加Nuget包版本NetStandard本地文件夹视觉工作室2017 - Increment Nuget Package Version NetStandard Local Folder visual studio 2017 如何解决nuget包中依赖版本的冲突? - How to resolve a conflict in dependency version in a nuget package? 如何降级内部版本 nuget package - How to downgrade the version of internal nuget package 如何卸载NuGet软件包的特定版本? - How to uninstall specific version of a NuGet package? 如何在多个 c# 项目中强制执行相同的 nuget 包版本? - How to enforce same nuget package version across multiple c# projects? 如何在vsts中检查nuget的“程序包管理”? - how to check for nuget “package management” in vsts? 本地Nuget包无法识别 - Local Nuget package not recognizing
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM