[MonoDevelop] Code Templates

John Anderson sontek at gmail.com
Sat Feb 3 21:05:27 EST 2007


I missed the e in CodeBehind :/

On 2/3/07, John Anderson <sontek at gmail.com> wrote:
>
> I gave it a shot but I've never used Make before so if you can let me know
> what I'm doing wrong i'd be grateful:
>
> ===================================================================
> --- AspNetAddIn.addin.xml        (revision 72244)
> +++ AspNetAddIn.addin.xml       (working copy)
> @@ -26,6 +26,8 @@
>                 <FileTemplate id = "EmptyWebHandler" resource = "
> EmptyWebHandler.xft.xml"/>
>                 <FileTemplate id = "EmptyWebControl" resource = "
> EmptyWebControl.xft.xml"/>
>                 <FileTemplate id = "EmptyWebService" resource = "
> EmptyWebService.xft.xml"/>
> +               <FileTemplate id = "EmptyMasterPage" resource = "
> MasterPageWithNoCodeBehind.xft.xml" />
> +               <FileTemplate id = "EmptyMasterPageWithCodeBehind"
> resource = "MasterPageWithCodeBehind.xft.xml" />
>                 <FileTemplate id = "CodeBehindWebControl" resource = "
> CodeBehindWebControl.xft.xml"/>
>                 <FileTemplate id = "CodeBehindWebService" resource = "
> CodeBehindWebService.xft.xml"/>
>                 <FileTemplate id = "CodeBehindWebForm" resource = "
> CodeBehindWebForm.xft.xml"/>
> Index: Makefile.am
> ===================================================================
> --- Makefile.am (revision 72244)
> +++ Makefile.am (working copy)
> @@ -56,6 +56,8 @@
>         Parser/Tree/Visitor.cs
>
>  RES = \
> +       Templates/MasterPageWithCodeBehind.xft.xml \
> +       Templates/MasterPageWithNoCodeBhind.xft.xml \
>         Templates/EmptyWebHandler.xft.xml \
>         Templates/EmptyWebForm.xft.xml \
>         Templates/EmptyWebControl.xft.xml \
>
> and after adding those I get
> make[2]: *** No rule to make target
> `Templates/MasterPageWithCodeBehind.xft.xml', needed by
> `../../build/AddIns/AspNetAddIn/AspNetAddIn.dll'.  Stop.
>
>
> Thanks,
> John
>
>
> On 2/3/07, Michael Hutchinson <m.j.hutchinson at gmail.com> wrote:
> >
> > On 2/4/07, John Anderson <sontek at gmail.com> wrote:
> > > Where are the code templates stored for MonoDevelop (when you say
> > > file->new).  There isn't a masterpage template and I'd like to add
> > one.
> >
> > They're compiled into the AddIn assemblies.
> >
> > If you look in Extras/AspNetAddIn, you'll see the templates in the
> > "Templates" subdirectory. You'll need to add a  "FileTemplate" entry
> > to the AspNetAddIn.addin.xml file, and add them to Makefile.am and
> > AspNetAddIn.mdp so they get compiled into the assembly.
> >
> > I'd be grateful if you could submit a patch.
> >
> > --
> > Michael Hutchinson
> > http://mjhutchinson.com
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20070203/1c2f4e35/attachment-0001.html 


More information about the Monodevelop-list mailing list