[Monodevelop-devel] [Path] Updated ASP.NET Templates
Valentin Sawadski
valentin.sawadski at googlemail.com
Mon Jul 14 12:36:22 EDT 2008
On Mon, 2008-07-14 at 09:41 -0400, Michael Hutchinson wrote:
> On Sat, Jul 12, 2008 at 12:05 PM, Valentin Sawadski
> <valentin.sawadski at googlemail.com> wrote:
> > Hi,
> >
> > I noticed, that the current ASP.NET templates are outdated and can not
> > be used out of the box anymore. (e.g. the CodeBehind attribute is
> > obsolete and the CodeFile is not present, this stops the application
> > from compiling). Attached is a patch containing the updated templates to
> > fix this.
>
> Actually, the CodeFile attribute is only needed when the codebehind
> files are intended to be compiled on the server (as VS Express <
> 2008sp1) does it. The full VS (and VS Express 2008sp2) supports Web
> Projects, where the CodeBehind is compiled beforehand. MonoDevelop
> uses the latter model.
>
Thats odd, because MSDN
(http://msdn.microsoft.com/en-us/library/ydy4x04a(VS.80).aspx) does not
mention this. It only states that:
"This attribute is included for compatibility with previous
versions of ASP.NET, to implement the code-behind feature. In
ASP.NET version 2.0, you should instead use the CodeFile
attribute to specify the name of the source file, along with the
Inherits attribute to specify the fully qualified name of the
class."
Anyways, this does not change the fact that the current Templates do not
work with xsp and xsp2 out of the box. Adding CodeFile to them fixes
this.
Kind Regards,
Valentin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/monodevelop-devel-list/attachments/20080714/398d41fb/attachment-0001.bin
More information about the Monodevelop-devel-list
mailing list