As I mentioned, the culprit in this case is the WSPBuilder project template. Specifically, it does not add the proper id’s the <ProjectTypeGuids> element of the WSPBuilder project file that is created. To remedy this, open your existing WSPBuilder project .cs file with a text editor and modify the following line:
<ProjectTypeGuids>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
To:
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
This will correct the project file so that you can now magically add web forms, web controls, and yes… “View Code” from your declarative markup!
But, better yet, the newest version of WSPBuilder has fixed this issue, and if you simply upgrade your WSPBuilder installation, any new projects that you create using the WSPBuilder project templates will correctly support the web project template. Make sure to get WSPBuilder Version 1.4 (currently in Beta). They may have fixed this issue in other releases, but I have only tested it in the 1.4 beta release.
No comments:
Post a Comment