-
Notifications
You must be signed in to change notification settings - Fork 8
Visual Studio adds ID Guids to the slnx file #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have noticed the same issue. Tested for several different solutions in both VS |
so VS does not generate it as changes microsoft/vs-solutionpersistence#109
As the commit message for Frog-Gaming/meercat-monitor@a325d24 seems to indicate that one problem are changing UUIDs:
If there's really a problem with regenerating different UUIDs on the fly each time the .slnx file is parsed, a possible solution might be to use name based UUIDs (aka Version 5), standardized in RFC 9562. |
The problem that @aateeque and I are referring to is the addition of the Here is what three nested directories with a file and a project at the deepest level looks like:
All the folders have an |
@patrikwlund What I understood from @markusschaber's comment is that if Visual Studio need stable UUIDs internally, it should use RFC 9562 to mint those UUIDs in-memory based on the folder names and not persist them to disk. I agree that one of the goals of a new solution files are (or at least should be) to not see UUIDs anywhere anymore. |
Any changes Visual Studio makes to an slnx it ends up adding an
Id
attribute to each folder node in the XML. This is undesirable as slnx file should not have guids in it. An example:There's a
Id
added to theFolder
.Instead this version without the
Id
works fine and looks and feels cleaner (one of the goals with moving away from the old sln format):This also can impact developer workflow with esoteric guids use in pull request.
The text was updated successfully, but these errors were encountered: