Bug 14159 - Non-useful error message from MSBuild project builder
Summary: Non-useful error message from MSBuild project builder
Status: NEW
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: Trunk
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Lluis Sanchez
Depends on:
Reported: 2013-08-21 14:50 UTC by Mikayla Hutchinson [MSFT]
Modified: 2013-08-21 14:50 UTC (History)
1 user (show)

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 for Bug 14159 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Mikayla Hutchinson [MSFT] 2013-08-21 14:50:00 UTC
The stack is useless, we need to see the InvalidProjectFileException properties.

ERROR [2013-08-21 14:23:24Z]: Error while reloading all references of project: Xamarin.AndroidDesigner
System.Exception: MSBuild operation failed

Server stack trace: 
  at MonoDevelop.Projects.Formats.MSBuild.BuildEngine.RunSTA (System.Threading.ThreadStart ts) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Projects.Formats.MSBuild.ProjectBuilder.GetAssemblyReferences (MonoDevelop.Projects.Formats.MSBuild.ProjectConfigurationInfo[] configurations) [0x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) System.Runtime.Remoting.RemotingServices:InternalExecute (System.Reflection.MethodBase,object,object[],object[]&)
  at System.Runtime.Remoting.RemotingServices.InternalExecuteMessage (System.MarshalByRefObject target, IMethodCallMessage reqMsg) [0x00000] in <filename unknown>:0 

Exception rethrown at [0]: 
 ---> Microsoft.Build.BuildEngine.InvalidProjectFileException: /Users/michael/Mono/md-addins/MonoDevelop.MonoDroid/Xamarin.AndroidDesigner/Xamarin.AndroidDesigner.csproj: Invalid path ---> System.ArgumentException: Invalid path
  at System.IO.Path.GetDirectoryName (System.String path) [0x00000] in <filename unknown>:0 
  at Microsoft.Build.BuildEngine.DirectoryScanner.ProcessInclude (ITaskItem include_item, System.Collections.Generic.Dictionary`2 excludedItems, System.Collections.Generic.List`1 includedItems) [0x00000] in <filename unknown>:0 
  at Microsoft.Build.BuildEngine.DirectoryScanner.Scan () [0x00000] in <filename unknown>:0 
  at Microsoft.Build.BuildEngine.BuildItem.Evaluate (Microsoft.Build.BuildEngine.Project project, Boolean evaluatedTo) [0x00000] in <filename unknown>:0 
  at Microsoft.Build.BuildEngine.BuildItemGroup.Evaluate () [0x00000] in <filename unknown>:0 
  at Microsoft.Build.BuildEngine.GroupingCollection.Evaluate (EvaluationType type) [0x00000] in <filename unknown>:0 
  at Microsoft.Build.BuildEngine.GroupingCollection.Evaluate () [0x00000] in <filename unknown>:0 
  at Microsoft.Build.BuildEngine.Project.Evaluate () [0x00000] in <filename unknown>:0 
  at Microsoft.Build.BuildEngine.Project.ProcessXml () [0x00000] in <filename unknown>:0 
  at Microsoft.Build.BuildEngine.Project.DoLoad (System.IO.TextReader textReader) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Microsoft.Build.BuildEngine.Project.DoLoad (System.IO.TextReader textReader) [0x00000] in <filename unknown>:0 
  at Microsoft.Build.BuildEngine.Project.Load (System.String projectFileName, ProjectLoadSettings settings) [0x00000] in <filename unknown>:0 
  at Microsoft.Build.BuildEngine.Project.Load (System.String projectFileName) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Projects.Formats.MSBuild.ProjectBuilder.SetupProject (MonoDevelop.Projects.Formats.MSBuild.ProjectConfigurationInfo[] configurations) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Projects.Formats.MSBuild.ProjectBuilder+<GetAssemblyReferences>c__AnonStorey2.<>m__2 () [0x00000] in <filename unknown>:0 
  at MonoDevelop.Projects.Formats.MSBuild.BuildEngine.STARunner () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg, System.Exception& exc, System.Object[]& out_args) [0x001e9] in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-None/mcs/class/corlib/System.Runtime.Remoting.Proxies/RealProxy.cs:248