用宏自動產生Web.sitemap檔案(ASP.NET 2.0)

來源:互聯網
上載者:User

K. Scott Allen 寫了一個產生Web.sitemap檔案的宏(for VS 2005)。原文

運行這個宏會遍曆整個工程,更具目錄結構產生Web.sitemap檔案。這個宏不會覆蓋原有的Web.sitemap檔案,只是在你想建立一個Web.sitemap檔案的時候,幫你產生一個模板。

點擊下載

具體使用方法:

  1. 按Alt-F8把Macro Explorer調出來
  2. 在Macros上點右鍵,選擇“Macros IDE...”
  3. 在“MyMacros”工程(或者你自己的Macro工程)裡“Add References”,把System.XML.dll加進來
  4. “Add Existing Item”,把從上面下載到的包裡的SiteMapModule.vb檔案添加進來。
  5. 關閉Macros IDE,回到Macro Explorer。MyMacros下面的新增了你剛才添加的macro module:“SiteMapModule”,其下有一個Macro:“CreateWebSitemap” 。右鍵點擊這個macro,選擇“Run”。

這樣Web.sitemap檔案就產生出來了。

相關文章:
ASP.NET 2.0 Site Navigation Features (by Scott Guthrie

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.