The process of installing, configuring, and customizing Visual Studio to support development workflows across languages, platforms, and workloads.
Hello @AdamS ,
Thanks for your question.
It appears that the specific algorithm and hash function Visual Studio uses to calculate the ComponentId in a .vdproj file is an internal implementation detail. This formula does not seem to be publicly documented.
I recommend not trying to reverse-engineer these internal IDs, as they may change over time.
You can refer to these following approaches:
Although there are efforts to move away from this approach, invoking devenv.exe from the command line on a Jenkins server may still be a practical option for building .vdproj files, since it is designed to handle the associated ID generation processes.
For a longer-term approach, while switching to WiX may be challenging due to your custom UI requirements, it is often recommended for teams that want to use MSBuild exclusively.
I hope this addresses your question. If this response was helpful, please consider following the guidance to provide feedback. Thank you.