Below are the settings required to set up external tools in Visual Studio, and how to use Powershell to generate build numbers.
Create GUID
Item |
Value |
Title |
Create &GUID |
Command |
C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\Tools\guidgen.exe |
Initial directory |
C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\Tools |
Get Build Number
Item |
Value |
Title |
Get Build Number (Today) |
Command |
C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\Tools\guidgen.exe |
Arguments |
[string]([int](Get-Date).Month) + ([string]((Get-Date).Day)).PadLeft(2,'0') |
Get Build Revision
Item |
Value |
Title |
Get Build Number (Today) |
Command |
C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\Tools\guidgen.exe |
Arguments |
[int](Get-Date).TimeOfDay.TotalMinutes |