Visual Studio keeps changing project.sln file

前端 未结 3 2020
梦毁少年i
梦毁少年i 2021-02-01 22:00

I work in a team on a Visual C++ project. Following advice we got we\'re tracking the project\'s .sln file with our SCM. It turns out that each time I pull from my partner (yes,

3条回答
  •  孤城傲影
    2021-02-01 22:49

    That is a GUID which Visual Studio uses to refer to the individual projects. You will find the same GUID at the top of the .sln file, where the projects are defined/imported.

    Visual Studio reads the GUID from the corresponding .csproj/.vbproj file. There you should find a ProjectGuid property near the top with the corresponding GUID. If you and your partner have a different GUID defined there, the .sln will also update.

提交回复
热议问题