Bug 3812 - Adding a csproj in a submodule throws an exception
Summary: Adding a csproj in a submodule throws an exception
Status: RESOLVED DUPLICATE of bug 3967
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Version Control ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Alan McGovern
URL:
Depends on:
Blocks:
 
Reported: 2012-03-08 11:59 UTC by Alan McGovern
Modified: 2012-03-20 12:04 UTC (History)
1 user (show)

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

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:
Status:
RESOLVED DUPLICATE of bug 3967

Description Alan McGovern 2012-03-08 11:59:21 UTC
1) Remove Mono.Cecil.csproj from the monodevelop solution
2) Add it again
3) This error is thrown

System.InvalidOperationException: Operation is not valid due to the current state of the object
  at System.Linq.Enumerable.Single[VersionInfo] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback) [0x00038] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System.Core/System.Linq/Enumerable.cs:2330 
  at System.Linq.Enumerable.Single[VersionInfo] (IEnumerable`1 source) [0x00006] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System.Core/System.Linq/Enumerable.cs:2346 
  at MonoDevelop.VersionControl.Repository.GetVersionInfo (FilePath localPath, Boolean getRemoteStatus) [0x00000] in /Users/alanmcgovern/Projects/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/Repository.cs:154 
  at MonoDevelop.VersionControl.Repository.GetVersionInfo (FilePath localPath) [0x00000] in /Users/alanmcgovern/Projects/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/Repository.cs:148 
  at MonoDevelop.VersionControl.VersionControlService.OnEntryAdded (System.Object o, MonoDevelop.Projects.SolutionItemEventArgs args) [0x000a8] in /Users/alanmcgovern/Projects/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/VersionControlService.cs:539 
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_SolutionItemChangeEventArgs (object,MonoDevelop.Projects.SolutionItemChangeEventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_SolutionItemChangeEventArgs (object,MonoDevelop.Projects.SolutionItemChangeEventArgs)
  at MonoDevelop.Ide.RootWorkspace+<NotifyItemAddedToSolution>c__AnonStoreyD3.<>m__1CA (System.Object , System.EventArgs ) [0x00010] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs:1153 
  at Gtk.Application+InvokeCB.Invoke () [0x00000] in <filename unknown>:0 
  at GLib.Timeout+TimeoutProxy.Handler () [0x00000] in <filename unknown>:0
Comment 1 Alan McGovern 2012-03-20 12:04:15 UTC
3967 is newer but it has a better repro case

*** This bug has been marked as a duplicate of bug 3967 ***