Does the order of items in a csproj file matter?

China☆狼群 提交于 2019-12-23 18:17:51

问题


I would like to programatically manage the VS2008 csproj files in our solution across the team. We get occasional merge issues (in Hg) simply because two developers add different new files in a project, but they end up in the "same place" in the csproj file and trigger the need to "resolve the conflict". Sometimes, one tag gets lost and triggers build errors.

  • Can I merge <ItemGroup>s that seem to just list or tags?
  • Can I reorder <Content> or <Compile> tags? or, are they in some "smart" order?
  • If this is okay in a VS2008 project, will I be able to carry this through to VS2010/2012, or does anything change relevant to this want?

回答1:


Yes, you can just merge it. The order makes no difference. Will carry through to 2010/2012.



来源:https://stackoverflow.com/questions/11810294/does-the-order-of-items-in-a-csproj-file-matter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!