Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7986959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:00:22+00:00 2026-06-04T12:00:22+00:00

Hi all i’m trying to make a MonoDevelop addin that I can use to

  • 0

Hi all i’m trying to make a MonoDevelop addin that I can use to compile out Mono for NaCl projects… but i’m getting a null ref error and can’t find enough information to figure out whats going wrong.

The null ref happens when I try to create a project from my Addin in MonoDevelop.
All resources are set to build as ‘EmbeddedResource’.

Builder.cs:

using System;
using MonoDevelop.Projects;
using MonoDevelop.Core;

namespace MonoDevelop.MonoNaCl
{
    public class Builder : ProjectServiceExtension
    {
        protected override BuildResult Build (IProgressMonitor monitor, SolutionEntityItem item, ConfigurationSelector configuration)
        {
            Console.WriteLine("Yahoo Build");
            return base.Build (monitor, item, configuration);
        }

        protected override void Execute (IProgressMonitor monitor, SolutionEntityItem item, ExecutionContext context, ConfigurationSelector configuration)
        {
            Console.WriteLine("Yahoo Execute");
            base.Execute (monitor, item, context, configuration);
        }
    }
}

MonoDevelop.MonoNaCl.addin.xml:
NOTE: I’m really not clear on the ‘Extension’s I should use and think the issue is in there.

<Addin namespace   = "MonoDevelop"
       id          = "MonoNaCl"
       name        = "Mono for NaCl"
       author      = "Andrew Witte"
       copyright   = "BSD"
       url         = "http://www.URL.com"
       description = "Support for developing MonoNaCl applications."
       category    = "NaCl Development"
       version     = "1.0">

    <Dependencies>
        <Addin id="Ide" version="3.0" />
        <Addin id="Core" version="3.0" />
    </Dependencies>

    <Extension path = "/MonoDevelop/Ide/ProjectTemplates">
        <ProjectTemplate id = "MonoNaClProject" resource = "MonoNaCl.xpt.xml"/>
    </Extension>

    <Extension path = "/MonoDevelop/ProjectModel/ProjectServiceExtensions">
        <Class class = "MonoDevelop.MonoNaCl.Builder"/>
    </Extension>

    <!--<Extension path = "/MonoDevelop/ProjectModel/MSBuildItemTypes">
        <SolutionItem type="MonoDevelop.MonoNaCl.Builder" extension="csproj" guid="{49DFC40D-C27A-4230-A637-8D9669269586}"/>
    </Extension>-->

    <Extension path="/MonoDevelop/ProjectModel/SerializableClasses">
        <DataType class="MonoDevelop.MonoNaCl.Builde" />
    </Extension>
</Addin>

MonoNaCl.xpt.xml:

<?xml version="1.0"?>
<Template originator = "Andrew Witte">

    <TemplateConfiguration>
        <_Name>MonoNaCl Project</_Name>
        <_Category>C#/MonoNaCl</_Category>
        <LanguageName>C#</LanguageName>
        <_Description>Creates a MonoNaCl project.</_Description>
    </TemplateConfiguration>

    <Combine name = "${ProjectName}" directory = ".">
        <Options>
            <StartupProject>${ProjectName}</StartupProject>
        </Options>

        <Project name = "${ProjectName}" directory = "." type = "MonoNaCl">
            <Options/>
        </Project>
    </Combine>
</Template>

And here is the Error after trying to create a project:

System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.Projects.SolutionFolderItemCollection.OnItemAdded (MonoDevelop.Projects.SolutionItem item) [0x0000b] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionFolderItemCollection.cs:59 
  at MonoDevelop.Projects.ItemCollection`1[MonoDevelop.Projects.SolutionItem].InsertItem (Int32 index, MonoDevelop.Projects.SolutionItem item) [0x00008] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ItemCollection.cs:39 
  at System.Collections.ObjectModel.Collection`1[MonoDevelop.Projects.SolutionItem].Add (MonoDevelop.Projects.SolutionItem item) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Templates.SolutionDescriptor.CreateEntry (MonoDevelop.Projects.ProjectCreateInformation projectCreateInformation, System.String defaultLanguage) [0x0026c] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/SolutionDescriptor.cs:162 
  at MonoDevelop.Ide.Templates.ProjectTemplate.CreateWorkspaceItem (MonoDevelop.Projects.ProjectCreateInformation cInfo) [0x00000] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/ProjectTemplate.cs:232 
  at MonoDevelop.Ide.Projects.NewProjectDialog.CreateProject () [0x001ef] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectDialog.cs:432 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T12:00:25+00:00Added an answer on June 4, 2026 at 12:00 pm

    Remove the type=”MonoNaCl” attribute definition in the Project element.
    You don’t have to set the project type, unless you are defining your own Project subclass.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

all, I am trying to multiply a matrix to a vector in OpenGL, but
All, I currently have two projects that are under SourceSafe that I am unable
All I am trying to create an app that start capturing the video from
All, I'm using the code that facebook provides but here is what I'm using:
All it does is output 'CHECK' which I put in to make sure it
All my searches returned nothing and I find it odd that there aren't any
All I am trying to do is take a standard range on an excel
All I want is a pragmatic random number generator in C# so I can
I am trying to understand how to use SyndicationItem to display feed which is
All the guys probably will recommend that I read the follow previously question in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.