guid for Visual Studio command prompt/PowerShell Profile #12782
-
The guid used for the Visual studio command prompt/PowerShell profile is different for each PC. PC1
PC2
If we have different guids for the same commandLine program, we have to change the key assignment in Action and the description in json fragment for each PC. in "actions"
in settings.json json fragment
In the above cases, by using guid, the installation status of the program on each PC is not affected. Is it possible to make the GUID in the Visual studio profile the same between PCs as in WSL? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I'm gonna try and tag in @heaths on this one. I forget how we're coming up with the GUIDs for the VS profiles. I think the WSL ones are based solely on the distro's name, so those are constant across machines. |
Beta Was this translation helpful? Give feedback.
-
Yes, the GUID is based on the instance ID which is automatically generated when installed. The instance ID must be unique across different Visual Studio installations to avoid collisions: the same VS edition can be installed multiple times, which comes in handy for previewing different channels without disrupting team standards. Perhaps seeding the GUID with the instance ID wasn't ideal, but I'm not sure there is an ideal seed. Can't use the display name because it's not unique (for the reason mentioned above) and using the installation path could be misleading because you might have different editions or channels installed to the same path on two different machines and the profile for one may not work for the profile of another. |
Beta Was this translation helpful? Give feedback.
Yes, the GUID is based on the instance ID which is automatically generated when installed.
terminal/src/cascadia/TerminalSettingsModel/VsDevCmdGenerator.cpp
Line 19 in 0bc66ab
The instance ID must be unique across different Visual Studio installations to avoid collisions: the same VS edition can be installed multiple times, which comes in handy for previewing different channels without disrupting team standards. Perhaps seeding the GUID with the instance ID wasn't ideal, but I'm not sure there is an ideal seed. Can't use the display name because it's not unique (for the reason mentioned above) and using the installation pat…