When i add an existing project to my solution, visual studio makes changes to lines concerning other projects in the sln file.
For example i added the MyProjectE
to my solution which already existed before.
Before:
...
MinimumVisualStudioVersion = 10.0.408219.2
Project("{FE45H815-301F-11D3-BF4B-01JG812DI512}") = "MyProjectA", "MyProjectAMyProjectA.csproj", "{5E1498BF-4BFA-65DB-B7B8-884JK349JK21}"
EndProject
Project("{FE45H815-301F-11D3-BF4B-01JG812DI512}") = "MyProjectB", "MyProjectBMyProjectB.csproj", "{E1D124F0-AB44-4145-8997-24F2B7C249B8}"
EndProject
Project("{FE45H815-301F-11D3-BF4B-01JG812DI512}") = "MyProjectC", "MyProjectCMyProjectC.csproj", "{420DJKLA-7D92-4ED2-B18A-7F92123SR920}"
EndProject
Project("{FE45H815-301F-11D3-BF4B-01JG812DI512}") = "MyProjectD", "MyProjectDMyProjectD.csproj", "{E1D124F0-295C-44BE-8A56-C3050AB49E4E}"
EndProject
Global
...
After:
...
MinimumVisualStudioVersion = 10.0.408219.2
Project("{89F231D1-16F7-4668-BE54-9A1E7A4F7556}") = "MyProjectA", "MyProjectAMyProjectA.csproj", "{5E1498BF-4BFA-65DB-B7B8-884JK349JK21}"
EndProject
Project("{89F231D1-16F7-4668-BE54-9A1E7A4F7556}") = "MyProjectB", "MyProjectBMyProjectB.csproj", "{E1D124F0-AB44-4145-8997-24F2B7C249B8}"
EndProject
Project("{FE45H815-301F-11D3-BF4B-01JG812DI512}") = "MyProjectC", "MyProjectCMyProjectC.csproj", "{420DJKLA-7D92-4ED2-B18A-7F92123SR920}"
EndProject
Project("{FE45H815-301F-11D3-BF4B-01JG812DI512}") = "MyProjectD", "MyProjectDMyProjectD.csproj", "{E1D124F0-295C-44BE-8A56-C3050AB49E4E}"
EndProject
Project("{89F231D1-16F7-4668-BE54-9A1E7A4F7556}") = "MyProjectE", "MyProjectEMyProjectE.csproj", "{28BEA2B4-42DC-4F84-843B-5070AD9AE335}"
EndProject
Global
...
What happens is, that the reference of the new project is added at the bottom which is completely fine. However, as you can see in the first two lines, the first “ID’s” of MyProjectA
and MyProjectB
changed from:
Project(“{FE45H815-301F-11D3-BF4B-01JG812DI512}”) = “MyProjectA” …
to:
Project(“{89F231D1-16F7-4668-BE54-9A1E7A4F7556}”) = “MyProjectA” …
The official documentation calls two ID’s in each line
the unique project GUID and the project type GUID.
However i am not sure, if the GUID that changes in my problem is the project GUID or the project type GUID because of this stack overflow answer.
So my question is, what exactly is the value that changes, what could be the reason, why the value changes and if i need to take any action because i am not sure, if i have to add these changes in my commits.
Thanks in advance 🙂