Project GUID keeps changing

后端 未结 6 1900
深忆病人
深忆病人 2021-01-07 16:24

We have a VS2008 solution and i\'ve noticed something weird happening:

some projects refer other projects that are defined in the same solution (added as project ref

6条回答
  •  余生分开走
    2021-01-07 17:21

    The solution file gets the project guid from the project file. Did you upgrade the solution/project from an earlier version of VS? If the guid in the solution file keeps changing, it could be because the project file doesn't have a guid at all, so VS makes up a new one each time the solution is opened. I'd call this a bug in the VS upgrade mechanism, but no one asked me. Fix the problem by adding a guid in your project file like this:

      
        {FB0F4A2A-1F78-42BF-8E31-E4FEFDC5565F}
      
    

    Open the solution one more time and let the project guid change one last time to this new guid. The guid will never change again.

提交回复
热议问题