List Info

Thread: Visual Studio Web Project




Visual Studio Web Project
user name
2007-08-29 15:30:20
I am attempting to import a large visual studio 2005 website
and I
would like to clarify a couple of issues.

Project File
A visual studio 2005 website does not have a project file so
I have
created an empty class project in Monodevelop and added all
of the
files from the website to it, is this the correct thing to
do?

Partial Classes
I am missing all of the aspx/ascx/master page control
declarations
that are created in the temporary files that are created by
Visual
Studio.  I can manually create all of the declarations it
would be a
bit of a pain though. Also it would cause problems if I
tried to
compile the project with Visual Studio as it would then find
duplicate
declarations. But I suppose I could get around this by
declaring a
CodeFileBaseClass along the lines of:

<% Page Language="C#"
AutoEventWireup="true"
CodeFile="test.aspx.cs"
Inherits="test"
CodeFileBaseClass="MyBase"%>

any thoughts on the easiest (i.e. the least typing) way of
doing this?

P.S.
Thanks Micheal for the suggesting earlier in the week it
sorted my problem.


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

Re: Visual Studio Web Project
user name
2007-08-29 15:47:19
On 8/29/07, Patrick Barry <drpatrickbarrygmail.com> wrote:
> I am attempting to import a large visual studio 2005
website and I
> would like to clarify a couple of issues.
>
> Project File
> A visual studio 2005 website does not have a project
file so I have
> created an empty class project in Monodevelop and added
all of the
> files from the website to it, is this the correct thing
to do?

Yes, VS2005 import doesn't work fro web apps yet. A Web
Application
project would have been better, but this support needs to be
compiled
into MD.

> Partial Classes
> I am missing all of the aspx/ascx/master page control
declarations
> that are created in the temporary files that are
created by Visual
> Studio.  I can manually create all of the declarations
it would be a
> bit of a pain though. Also it would cause problems if I
tried to
> compile the project with Visual Studio as it would then
find duplicate
> declarations.

Well, if you're developing it "Web Site" style you
only need the
declarations for code completion. MonoDevelop can't do this
yet.
However, the app will run; they're generated by the ASP.NET
compiler
on the web server (including xsp2).

If you do it "Web Application" style so that all
the CodeBehind is
compiled before deployment, then either you or the IDE would
need to
add these control declaration. MonoDevelop *can*
automatically do this
either with or without partial classes if you use a Web
Project,
although you'd need to create the partial classes yourself
at the
moment; it would just add the members.

You're correct in thinking that you would get duplicate
declaration
conflicts with VS2005' Web Site model, but you could just
not add
these partial classes to the VS project... or use the Web
Application
addin for VS.

> But I suppose I could get around this by declaring a
> CodeFileBaseClass along the lines of:
>
> <% Page Language="C#"
AutoEventWireup="true"
CodeFile="test.aspx.cs"
> Inherits="test"
CodeFileBaseClass="MyBase"%>

I'm not quite sure what you mean by this.

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

[1-2]

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