Bug 15339 - One project in my solution doesn't build
Summary: One project in my solution doesn't build
Status: RESOLVED NORESPONSE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 4.0.12
Hardware: PC Windows
: Normal normal
Target Milestone: master
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-10-10 16:45 UTC by Peter Theill
Modified: 2016-10-25 14:22 UTC (History)
3 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 NORESPONSE

Description Peter Theill 2013-10-10 16:45:24 UTC
I have a solution which should build and builds with VS.NET. When I build it from Studio I get

Building: ClickATaxi.Api.Data (Debug)
Performing main compilation...

---------------------- Done ----------------------

Bygning fejlede. Object reference not set to an instance of an object.
Build: 1 error, 0 warnings

I can't see where the NRE is coming from but when I look in the IDE log I'm seeing this

ERROR [2013-10-10 22:42:52Z]: System.NullReferenceException: Object reference not set to an instance of an object.
   at MonoDevelop.CSharp.CSharpBindingCompilerManager.Compile(ProjectItemCollection projectItems, DotNetProjectConfiguration configuration, ConfigurationSelector configSelector, IProgressMonitor monitor)
   at MonoDevelop.CSharp.CSharpLanguageBinding.Compile(ProjectItemCollection projectItems, DotNetProjectConfiguration configuration, ConfigurationSelector configSelector, IProgressMonitor monitor)
   at MonoDevelop.Projects.Formats.MD1.MD1DotNetProjectHandler.<>c__DisplayClass1.<OnBuild>b__0(IProgressMonitor , SolutionEntityItem , BuildData )
   at MonoDevelop.Projects.DefaultProjectServiceExtension.Compile(IProgressMonitor monitor, SolutionEntityItem item, BuildData buildData, ItemCompileCallback callback)
   at MonoDevelop.Projects.ProjectServiceExtension.Compile(IProgressMonitor monitor, SolutionEntityItem item, BuildData buildData)
   at MonoDevelop.Projects.ProjectServiceExtension.Compile(IProgressMonitor monitor, SolutionEntityItem item, BuildData buildData, ItemCompileCallback callback)
   at MonoDevelop.Projects.ProjectServiceExtension.Compile(IProgressMonitor monitor, SolutionEntityItem item, BuildData buildData)
   at MonoDevelop.Projects.ProjectServiceExtension.Compile(IProgressMonitor monitor, SolutionEntityItem item, BuildData buildData, ItemCompileCallback callback)
   at MonoDevelop.Projects.ProjectServiceExtension.Compile(IProgressMonitor monitor, SolutionEntityItem item, BuildData buildData)
   at MonoDevelop.Projects.ProjectServiceExtension.Compile(IProgressMonitor monitor, SolutionEntityItem item, BuildData buildData, ItemCompileCallback callback)
   at MonoDevelop.Projects.ProjectServiceExtension.Compile(IProgressMonitor monitor, SolutionEntityItem item, BuildData buildData)
   at MonoDevelop.Projects.ProjectServiceExtension.Compile(IProgressMonitor monitor, SolutionEntityItem item, BuildData buildData, ItemCompileCallback callback)
   at MonoDevelop.Projects.ProjectServiceExtension.Compile(IProgressMonitor monitor, SolutionEntityItem item, BuildData buildData)
   at MonoDevelop.Projects.ProjectServiceExtension.Compile(IProgressMonitor monitor, SolutionEntityItem item, BuildData buildData, ItemCompileCallback callback)
   at MonoDevelop.Projects.ProjectServiceExtension.Compile(IProgressMonitor monitor, SolutionEntityItem item, BuildData buildData)
   at MonoDevelop.Projects.ProjectServiceExtension.Compile(IProgressMonitor monitor, SolutionEntityItem item, BuildData buildData, ItemCompileCallback callback)
   at MonoDevelop.Projects.Extensions.ProjectExtensionUtil.Compile(IProgressMonitor monitor, SolutionEntityItem item, BuildData buildData, ItemCompileCallback callback)
   at MonoDevelop.Projects.Formats.MD1.MD1DotNetProjectHandler.OnBuild(IProgressMonitor monitor, ConfigurationSelector configuration)
   at MonoDevelop.Projects.Extensions.SolutionItemHandler.RunTarget(IProgressMonitor monitor, String target, ConfigurationSelector configuration)
   at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.RunTarget(IProgressMonitor monitor, String target, ConfigurationSelector configuration)
   at MonoDevelop.Projects.Project.DoBuild(IProgressMonitor monitor, ConfigurationSelector configuration)
   at MonoDevelop.Projects.Project.OnBuild(IProgressMonitor monitor, ConfigurationSelector configuration)
   at MonoDevelop.Projects.SolutionItem.OnRunTarget(IProgressMonitor monitor, String target, ConfigurationSelector configuration)
   at MonoDevelop.Projects.SolutionEntityItem.OnRunTarget(IProgressMonitor monitor, String target, ConfigurationSelector configuration)
   at MonoDevelop.Projects.DefaultProjectServiceExtension.RunTarget(IProgressMonitor monitor, IBuildTarget item, String target, ConfigurationSelector configuration)
   at MonoDevelop.Projects.ProjectServiceExtension.Build(IProgressMonitor monitor, SolutionEntityItem item, ConfigurationSelector configuration)
   at MonoDevelop.Projects.ProjectServiceExtension.Build(IProgressMonitor monitor, IBuildTarget item, ConfigurationSelector configuration)
   at MonoDevelop.Projects.ProjectServiceExtension.RunTarget(IProgressMonitor monitor, IBuildTarget item, String target, ConfigurationSelector configuration)
   at MonoDevelop.Projects.ProjectServiceExtension.Build(IProgressMonitor monitor, SolutionEntityItem item, ConfigurationSelector configuration)
   at MonoDevelop.Projects.ProjectServiceExtension.Build(IProgressMonitor monitor, IBuildTarget item, ConfigurationSelector configuration)
   at MonoDevelop.Projects.ProjectServiceExtension.RunTarget(IProgressMonitor monitor, IBuildTarget item, String target, ConfigurationSelector configuration)
   at MonoDevelop.Projects.ProjectServiceExtension.Build(IProgressMonitor monitor, SolutionEntityItem item, ConfigurationSelector configuration)
   at MonoDevelop.Projects.ProjectServiceExtension.Build(IProgressMonitor monitor, IBuildTarget item, ConfigurationSelector configuration)
   at MonoDevelop.Projects.ProjectServiceExtension.RunTarget(IProgressMonitor monitor, IBuildTarget item, String target, ConfigurationSelector configuration)
   at MonoDevelop.Projects.ProjectServiceExtension.Build(IProgressMonitor monitor, SolutionEntityItem item, ConfigurationSelector configuration)
   at MonoDevelop.Projects.ProjectServiceExtension.Build(IProgressMonitor monitor, IBuildTarget item, ConfigurationSelector configuration)
   at MonoDevelop.Projects.ProjectServiceExtension.RunTarget(IProgressMonitor monitor, IBuildTarget item, String target, ConfigurationSelector configuration)
   at MonoDevelop.Projects.ProjectServiceExtension.Build(IProgressMonitor monitor, SolutionEntityItem item, ConfigurationSelector configuration)
   at MonoDevelop.Projects.ProjectServiceExtension.Build(IProgressMonitor monitor, IBuildTarget item, ConfigurationSelector configuration)
   at MonoDevelop.Projects.ProjectServiceExtension.RunTarget(IProgressMonitor monitor, IBuildTarget item, String target, ConfigurationSelector configuration)
   at MonoDevelop.Projects.ProjectServiceExtension.Build(IProgressMonitor monitor, SolutionEntityItem item, ConfigurationSelector configuration)
   at MonoDevelop.Projects.CustomCommandExtension.Build(IProgressMonitor monitor, SolutionEntityItem entry, ConfigurationSelector configuration)
   at MonoDevelop.Projects.ProjectServiceExtension.Build(IProgressMonitor monitor, IBuildTarget item, ConfigurationSelector configuration)
   at MonoDevelop.Projects.ProjectServiceExtension.RunTarget(IProgressMonitor monitor, IBuildTarget item, String target, ConfigurationSelector configuration)
   at MonoDevelop.Projects.SolutionItem.RunTarget(IProgressMonitor monitor, String target, ConfigurationSelector configuration)
   at MonoDevelop.Projects.SolutionItem.Build(IProgressMonitor monitor, ConfigurationSelector solutionConfiguration, Boolean buildReferences)
   at MonoDevelop.Projects.SolutionItem.Build(IProgressMonitor monitor, ConfigurationSelector solutionConfiguration, Boolean buildReferences)
   at MonoDevelop.Ide.ProjectOperations.BuildSolutionItemAsync(IBuildTarget entry, IProgressMonitor monitor, ITimeTracker tt)

It happens every time I build this project file. Other projects in the solution works fine. I have no missing references in the .csproj either.
Comment 1 Nischal 2013-11-21 02:39:36 UTC
Peter-Thanks for pasting an example of the error you are observing. If possible, please attach a complete, small project that demonstrates this behavior. This will help us efficiently confirm and fix the bug.
Comment 2 Jason Imison 2016-10-25 14:22:26 UTC
We have not received the requested information. If you are still experiencing this issue with XS 6.1 please re-open the bug report. Thanks!