Bug 1327 - Error exporting mdp with project reference to csproj
Summary: Error exporting mdp with project reference to csproj
Status: RESOLVED NOT_ON_ROADMAP
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: Trunk
Hardware: PC Mac OS
: Low normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2011-10-06 20:25 UTC by Mikayla Hutchinson [MSFT]
Modified: 2014-02-17 14:38 UTC (History)
2 users (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 NOT_ON_ROADMAP

Description Mikayla Hutchinson [MSFT] 2011-10-06 20:25:50 UTC
The following trace was reported when exporting mdp to csproj. On inspection of the code, it appears to be caused by a resolving a when saving a project during export.

System.NullReferenceException: Object reference not set to an instance of an object
at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.SaveReference (IProgressMonitor monitor, MonoDevelop.Projects.Formats.MSBuild.MSBuildSerializer ser, MonoDevelop.Projects.Formats.MSBuild.MSBuildProject msproject, MonoDevelop.Projects.ProjectReference pref, System.Collections.Generic.Dictionary`2 oldItems) [0x00394] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs:1201 
at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.SaveItem (IProgressMonitor monitor, MonoDevelop.Projects.Formats.MSBuild.MSBuildSerializer ser, MonoDevelop.Projects.Formats.MSBuild.MSBuildProject msproject, System.Object ob, System.Collections.Generic.Dictionary`2 oldItems) [0x0000c] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs:1034 
at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.SaveItem (IProgressMonitor monitor) [0x00a2e] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs:918 
at MonoDevelop.Projects.Formats.MSBuild.MSBuildHandler.Save (IProgressMonitor monitor) [0x0007e] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildHandler.cs:128 
at MonoDevelop.Projects.SolutionEntityItem.OnSave (IProgressMonitor monitor) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionEntityItem.cs:306 
at MonoDevelop.Projects.DotNetProject.OnSave (IProgressMonitor monitor) [0x00027] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/DotNetProject.cs:734 
at MonoDevelop.Projects.DefaultProjectServiceExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem entry) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:647 
at MonoDevelop.Projects.ProjectServiceExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem item) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:66 
at MonoDevelop.Projects.ProjectServiceExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem item) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:66 
at MonoDevelop.Autotools.MakefileProjectServiceExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem entry) [0x00000] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.Autotools/MakefileProjectServiceExtension.cs:101 
at MonoDevelop.Projects.ProjectServiceExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem item) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:66 
at MonoDevelop.Projects.ProjectServiceExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem item) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:66 
at MonoDevelop.Projects.ProjectServiceExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem item) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:66 
at MonoDevelop.Projects.ProjectServiceExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem item) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:66 
at MonoDevelop.Projects.ProjectServiceExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem item) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:66 
at MonoDevelop.Projects.CompiledAssemblyExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem item) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/CompiledAssemblyProject.cs:230 
at MonoDevelop.Projects.ProjectServiceExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem item) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:66 
at MonoDevelop.Projects.ProjectServiceExtension.Save (IProgressMonitor monitor, MonoDevelop.Projects.SolutionEntityItem item) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:66 
at MonoDevelop.Projects.SolutionEntityItem.Save (IProgressMonitor monitor) [0x0002b] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionEntityItem.cs:253 
at MonoDevelop.Projects.ProjectService.Export (IProgressMonitor monitor, IWorkspaceFileObject obj, System.String[] includedChildIds, System.String targetPath, MonoDevelop.Projects.FileFormat format) [0x000a2] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:382 
at MonoDevelop.Projects.ProjectService.Export (IProgressMonitor monitor, System.String rootSourceFile, System.String[] includedChildIds, System.String targetPath, MonoDevelop.Projects.FileFormat format) [0x0003b] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:357 
at MonoDevelop.Projects.ProjectService.Export (IProgressMonitor monitor, System.String rootSourceFile, System.String targetPath, MonoDevelop.Projects.FileFormat format) [0x00009] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:342 
at MonoDevelop.Ide.ProjectOperations.Export (IWorkspaceObject entry, MonoDevelop.Projects.FileFormat format) [0x00059] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/ProjectOperations.cs:321 
at MonoDevelop.Ide.Commands.ExportProjectHandler.Run () [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ProjectCommands.cs:494 
at MonoDevelop.Components.Commands.CommandHandler.Run (System.Object dataItem) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:61 
at MonoDevelop.Components.Commands.CommandHandler.InternalRun (System.Object dataItem) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:42 
at MonoDevelop.Components.Commands.CommandManager.DefaultDispatchCommand (MonoDevelop.Components.Commands.ActionCommand cmd, MonoDevelop.Components.Commands.CommandInfo info, System.Object dataItem, System.Object target, CommandSource source) [0x00076] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:649 
at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, CommandSource source) [0x002d1] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:619
Comment 1 Lluis Sanchez 2014-02-17 14:38:36 UTC
MDP not supported anymore.