{"id":1138,"date":"2006-11-20T16:51:00","date_gmt":"2006-11-20T21:51:00","guid":{"rendered":"http:\/\/blogs.devhorizon.com\/reza\/?p=1138"},"modified":"2012-06-30T23:54:47","modified_gmt":"2012-07-01T04:54:47","slug":"visual-studio-2005-extensions-for-wss-30-and-custom-master-page-problem","status":"publish","type":"post","link":"https:\/\/blogs.devhorizon.com\/reza\/2006\/11\/20\/visual-studio-2005-extensions-for-wss-30-and-custom-master-page-problem\/","title":{"rendered":"Visual Studio 2005 Extensions for WSS 3.0 and Custom Master Page Problem"},"content":{"rendered":"<p>With the new <a href=\"http:\/\/www.microsoft.com\/downloads\/details.aspx?familyid=19F21E5E-B715-4F0C-B959-8C6DCBDC1057&amp;displaylang=en\">VSeWSS <\/a>tools for Visual Studio 2005, SharePoint developers can now create site definitions and deploy them as easy as 1-2-3 to the server without any copy and paste steps involved. Well, it is still in CTP and there are some serious bugs there, so we cannot expect it to work 100%. One thing that is strange is the fact the there is no direct way to have a custom master page in yor project. As soon as you change MasterPageFile=&#8221;~masterurl\/default.master&#8221; to anything else , you will get dozens of errors and warnings and project does not get compiled.<\/p>\n<p>&nbsp;<\/p>\n<p>If you follow <a href=\"http:\/\/mindsharpblogs.com\/todd\/archive\/2006\/06\/27\/1148.aspx\">Todd&#8217;s solution <\/a>on how to create ghosted and unghosted master pages , you still have no chance to get this working.I changed Todd&#8217;s solution and finally managed to add my own custom.master to the project. here are the steps:<\/p>\n<p>&nbsp;<\/p>\n<p>1) Add a custom.master to the project (same-level as default.aspx)<\/p>\n<p>&nbsp;<\/p>\n<p>In ONET.XML<\/p>\n<p>&nbsp;<\/p>\n<p>2)Add the following tag inside the tag.<br \/>\n3)Scroll down to thesection\u00a0 and change it to<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>4) Inside the configuration Tag above , go to thesection<\/p>\n<p>&nbsp;<\/p>\n<p>and add:<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>It should look like this after you change it:<\/p>\n<p>&nbsp;<\/p>\n<p>&#8230;.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&#8230;..<\/p>\n<p>&nbsp;<\/p>\n<p>5) Create a new Module section under the tag as shown below:<br \/>\n6) Build and deploy the project , custom.master should show up in the master page gallery of your site and custom.master page is in effect.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<hr align=\"left\" noshade=\"noshade\" size=\"10\" width=\"50%\" \/>\n","protected":false},"excerpt":{"rendered":"<p>With the new VSeWSS tools for Visual Studio 2005, SharePoint developers can now create site definitions and deploy them as easy as 1-2-3 to the server without any copy and paste steps involved. Well, it is still in CTP and there are some serious bugs there, so we cannot expect it to work 100%. One [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[],"class_list":["post-1138","post","type-post","status-publish","format-standard","hentry","category-moss-2007"],"_links":{"self":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/posts\/1138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/comments?post=1138"}],"version-history":[{"count":3,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/posts\/1138\/revisions"}],"predecessor-version":[{"id":1192,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/posts\/1138\/revisions\/1192"}],"wp:attachment":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/media?parent=1138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/categories?post=1138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/tags?post=1138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}