简体   繁体   English

Visual Studio解决方案的语义版本控制

[英]Semantic Versioning for Visual Studio Solution

My team has a fairly large set of desktop applications with many shared libraries between them all in one common solution file in our repository. 我们的团队拥有大量的桌面应用程序,在它们之间有许多共享库,所有共享库都在我们存储库中的一个通用解决方案文件中。 We'd like to use semantic versioning for a number of reasons, chief of which is to make it easier for our users to install updates. 出于多种原因,我们希望使用语义版本控制,其主要原因是使我们的用户更容易安装更新。 However, given the number of assemblies we're dealing with, we're finding it pretty tedious updating AssemblyInfo files for each one, especially if it's for a library that's a dependency for multiple applications. 但是,考虑到我们要处理的程序集的数量,我们发现为每个程序集更新AssemblyInfo文件非常繁琐,尤其是当它用于依赖多个应用程序的库时。

I was wondering if there's an easy way to use git tags or some kind of external tool to tell the build server that, for example, XYZ has a bug fix and its patch number needs to be updated. 我想知道是否有使用git标记或某种外部工具的简单方法来告诉构建服务器,例如XYZ有一个错误修复程序,并且其补丁号需要更新。

Use GitVersion : https://gitversion.readthedocs.io/en/latest/ 使用GitVersion: https ://gitversion.readthedocs.io/en/latest/

It will do automatically the semantic versionning based on the last tag and git history. 它将根据最后一个标签和git历史记录自动进行语义版本控制。

You could use GitVersionTask if you use msbuild or (better) use it with build tools like fake or cake.net 如果您使用msbuild或(更好)将其与诸如fake或cake.net之类的构建工具一起使用,则可以使用GitVersionTask

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

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