We have several teams which share and collaboratively develop a certain SharedProject.csproj, which is a shared component across many products. They do so as each develops its own product (each 开发者_JS百科product has its own solution file).
Each team references SharedProject.csproj in their respective solution file. Neither team has changed anything about that project, but source control keeps reporting the file as changed.
It turns out that each VS2010 solution file references that project, with a solution-specific GUID for that project. Even though the project is the same, each solution references it with a unique GUID.
This solution-specific GUID gets injected into the SharedProject.csproj file each time the next team opens their solution.
How can we prevent VS2010 from changing/editing this SharedProject.csproj file unexpectedly?
Edit each solution file to reference SharedProject.csproj by the same GUID.
精彩评论