Bug 196 - Adding a new project to the MD solution generates a 6000+ line diff
Summary: Adding a new project to the MD solution generates a 6000+ line diff
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: Trunk
Hardware: PC Mac OS
: Low normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2011-08-05 04:25 UTC by Alan McGovern
Modified: 2015-07-30 10:29 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Changes (79.71 KB, text/plain)
2011-08-05 06:41 UTC, Alan McGovern

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Alan McGovern 2011-08-05 04:25:18 UTC
I added a new project to the 'tools' solution in MD which caused a 6000 line diff to be created as MD rewrote every csproj in the hierarchy. This is unwanted behaviour for most users and I don't know why MD did this.
Comment 1 Mikayla Hutchinson [MSFT] 2011-08-05 06:31:38 UTC
What were the changes?
Comment 2 Alan McGovern 2011-08-05 06:41:52 UTC
Created attachment 72 [details]

I assumed you would just do it and view the changes ;)

Changes attached.
Comment 3 Alan McGovern 2011-08-05 06:43:49 UTC
My peeve with this is that when I added a single new project MD automatically rewrote every csproj. Even if the change is valid it's weird for me that MD would take that action as an opportunity to rewrite what would appear to be completely unrelated csproj files.
Comment 4 Mikayla Hutchinson [MSFT] 2011-08-05 06:59:03 UTC
Whenever the solution is saved, MD saves every project in the solution. That should be okay.

The problem here is that the project reference system appears to have annotated all the references with <Package> metadata. Package metadata is Mono-only, i.e. projects saved on .NET don't have it. So the problem is one of consistency in the deserializer/serializer and the reference resolver.
Comment 5 Alan McGovern 2011-08-05 12:45:02 UTC
Ah, that makes sense. Hopefully there's a way to inform MD that that particular item can be inferred and doesn't have to be explicitly written in this kind of scenario. It's probably not worth investing a huge amount of time into at the moment as it'd only affect people who use both VS and MD on the same solution and also add/remove projects from it.
Comment 6 Lluis Sanchez 2015-07-30 10:29:58 UTC
Most of unwanted changes should be fixed in master, and all of them in XS 6.0.