[Mono-list] Converting over from VS 2k8
Michael Hutchinson
m.j.hutchinson at gmail.com
Fri Jun 12 00:07:42 EDT 2009
On Tue, Jun 9, 2009 at 12:52 PM, Mike Needham<jmikeneedham at gmail.com> wrote:
> Greetings:
>
> I am new to Mono Develop and I am using SuSE Linux 11.1 (and soon on my Mac
> with Leopard 10.5 as well).
>
> I have a project that I am working on that originally was just a VS 2k8
> website in C#/ASP.NET and I am trying to get it to work inside MonoDevelop
> 2.4.
>
> 2 items:
>
> First -- I am thinking of making a web app inside of Mono and bringing my
> old project files into the system. When I first tried this, it will not
> compile. I have a page in place that gives me a "global" set of variables
> and this changes the "namespace" (more than happy to provide the files if
> someone is willing to help). I would like to get things in place to
> convert to a webapp that MD can use.
I believe VS2008 has a feature for converting web sites to web apps,
so maybe you could use that.
Other than that, a manual conversion would be pretty straightforward.
a) Add blank *.aspx.designer.cs files alongside the *.aspx.cs files.
b) Remove the "CodeFile=..." attributes from the page directives.
c) Create a new Web Application project and add all the files to it.
d) Move all of the codefiles out of App_Code
I'm not quite sure what you mean by "global set of variables.. changes
the namespace", but if you make the changes I described, all the
codebehind and other code files will be compiled to a single assembly,
so will be able to reference each other more easily than a "web site"
can.
> Second -- I can not seem to get a design view in MD. Help is most
> appreciated and I am a noob to both ASP.NET and C# as well as a complete
> noob to MD.
There is no web design view in MD. Although there's an addin called
AspNetEdit, it's not yet usable for anything more than a demo, and is
currently inactive. You can read about the problems with the existing
editor here: http://monodevelop.com/Proposal:_WebKit_Port_of_AspNetEdit
--
Michael Hutchinson
http://mjhutchinson.com
More information about the Mono-list
mailing list