开发者

VS2010: Multiple solutions, one shared C# project file/GUID

开发者 https://www.devze.com 2023-04-04 04:11 出处:网络
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 开发者

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号