In case you hadn't noticed, there is a Beta of SP1 for Visual Studio 2008 and .NET Framework 3.5 out there. You should really check it out, it has tons of goodies, especially if you need some performance boosts in your WPF applications.
In this blog, I want to highlight a little hack that Microsoft added to the designer. In some instances, with complex nested Web Application Project solutions, the 2008 designer can not locate the master page. This used to be the case in 2005 designer too, but it would just show an error message for the master page portion of the form, and still show the content page. But in 2008, the content page is not displayed either, so you cant use the designer at all. I reported this to Microsoft and they were kind enough to provide a workaround. I just tested it out and it worked really well.
Our project has the following structure:
/root (web application project)
/root/module 1 (web application project)
/root/module 2 (web application project)
/root/module n (web application project)
/root/lib projects (class library projects)
/root/UI (web application project)
The master page resides in /root/UI.
It is referenced by content pages in all of the /module x projects, which are sibling directories to the UI directory, and all under the root web app directory. The master page is referenced "~/UI/xxx.Master". This is the reference that does not work in design time (as ~ is resolved to be the local module x web app root in design time, but in runtime it correctly resolves to the global app root).
So here is the work around:
That did it! Of course, you could use any old master page for the fake __fallback page, even just a blank one, but if you want it to look like it should in design time, it is better to use a modified copy of your actual master page as detailed above.
Thanks Microsoft for the workaround!
Remember Me
a@href@title, i, strike, u
Copyright © 2003-2008 Falafel Software Inc.
Subscribe to Falafel Blogs
The opinions expressed herein are Falafel's employees own personal opinions and do not represent Falafel Software's view in any way in case they go bananas!