[MonoDevelop] re Missing Designer Files

Patrick Barry drpatrickbarry at gmail.com
Fri Apr 11 09:19:02 EDT 2008


Visual Studio has two formats for web sites The normal web site. This
format does not work well with MD as as you say it does not have
designer files as the controls are dynamically created at runtime and
stored in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files/WebSiteName

However a VS service pack introduced a "web application" project type
that uses designer files instead of files in
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files/WebSiteName.  This format works great with MD as the website
also has a project file unlike the web site format.

It not a bad job to convert a VS web site to a web application. Just
add a new web application project to your solution and then add all of
the file in your website to the new project. They will still  be
missing the .designer files so you need to right click on the each
file or directory and select convert to web application. This will
create your designer files.

MD will then happy open the solution and compile.

>At work, we developped an asp.net web application using Visual Studio 2005.
>When I open it in MonoDevelop there's a problem with the webcontrols not
>being recognised in the code behind files.
>When I create a new .aspx file in MonoDevelop, a designer.cs file is added
>with the declarations for the webcontrols.
>But in VS2005 I have no such files.
>So now, MonoDevelop doesn't recognise my webcontrols.
>Do I have to add them manually, or is there a way to automatically generate
>them?


Pat.

PS How do I reply to a specific message??


More information about the Monodevelop-list mailing list