List Info

Thread: Add Project Templates to MD




Add Project Templates to MD
user name
2007-07-14 03:07:34
Hello,
How can I add my own project templates to MonoDevelop?
I create a .xpt.xml file and do the "mdtool setup
pack" stuff and
looks like works well, but when I do "mdtool setup
rep-build" I get
this error:
    MonoDevelop Add-In Setup Utility
    Checking directory: myaddins
    Addin configuration file not found in package.

By the way the local repository cann't be added I receive an
error:
    The repository could not be registered.
I'll really appreciate your help.
I'm working on Kubuntu Feysty & Monodevelop 0.12
_______________________________________________
Monodevelop-list mailing list
Monodevelop-listlists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-li
st

Re: Add Project Templates to MD
user name
2007-07-14 15:28:50
On 7/14/07, Sergio A. Hernandez <info.geexgmail.com> wrote:
> Hello,
> How can I add my own project templates to MonoDevelop?
> I create a .xpt.xml file and do the "mdtool setup
pack" stuff and
> looks like works well, but when I do "mdtool setup
rep-build" I get
> this error:
>     MonoDevelop Add-In Setup Utility
>     Checking directory: myaddins
>     Addin configuration file not found in package.

You need a .addin.xml file. IIRC the templates needs to be a
resource
in an AddIn assembly too. Have you read
http://w
ww.monodevelop.com/Writing_an_Add-In ?

It's non-trivial to add new project and file templates to
MD, and this
problem has come up several times now. I think we should add
a way to
load templates from ~/.config/MonoDevelop/Templates (or
similar).

-- 
Michael Hutchinson
http://mjhutchinson.com
_______________________________________________
Monodevelop-list mailing list
Monodevelop-listlists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-li
st

Re: Add Project Templates to MD
user name
2007-07-18 12:26:19
El ds 14 de 07 del 2007 a les 21:28 +0100, en/na Michael
Hutchinson va
escriure:
> On 7/14/07, Sergio A. Hernandez <info.geexgmail.com> wrote:
> > Hello,
> > How can I add my own project templates to
MonoDevelop?
> > I create a .xpt.xml file and do the "mdtool
setup pack" stuff and
> > looks like works well, but when I do "mdtool
setup rep-build" I get
> > this error:
> >     MonoDevelop Add-In Setup Utility
> >     Checking directory: myaddins
> >     Addin configuration file not found in
package.
> 
> You need a .addin.xml file. IIRC the templates needs to
be a resource
> in an AddIn assembly too. Have you read
> http://w
ww.monodevelop.com/Writing_an_Add-In ?
> 
> It's non-trivial to add new project and file templates
to MD, and this
> problem has come up several times now. I think we
should add a way to
> load templates from ~/.config/MonoDevelop/Templates (or
similar).

I changed the template loader so now it can read templates
from files in
addition to resources, which makes writing custom templates
much easier
for end users.

That's how it can be done:
      * Create the templates, both project and file
templates are
        supported (xpt.xml or xft,xml, although the
extension name
        doesn't really matter).
      * Create a .addin.xml file which registers the
templates.
      * Copy all templates and the .addin.xml file to
        ~/.config/MonoDevelop/addins (you can create a
subdirectory
        there).

I'm attaching a sample template and .addin.xml file.

Lluis.


_______________________________________________
Monodevelop-list mailing list
Monodevelop-listlists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-li
st

  
  
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )