Use a macro to automatically generate a web. sitemap file (ASP. NET 2.0)

Source: Internet
Author: User

K. Scott Allen writes a macro (for VS 2005) that generates the Web. sitemap file ). Original

Running this macro will traverse the entire project and generate a web. sitemap file with a more directory structure. This macro will not overwrite the original web. sitemap file, but will help you generate a template when you want to create a new Web. sitemap file.

Click to download

Usage:

  1. Call macro Explorer by Alt-F8
  2. Right-click macros and select "macros ide ..."
  3. Add "Add references" in the "mymacros" project (or your macro project) and add system. xml. dll.
  4. "Add existing item" to add the sitemapmodule. VB file from the package downloaded above.
  5. Close macros IDE and return to macro explorer. The macro module you just added under mymacros: "sitemapmodule", under which there is a macro: "createwebsitemap ". Right-click macro and select "run ".

In this way, the Web. sitemap file is generated.

RelatedArticle:
ASP. NET 2.0 site navigation features (Scott Guthrie)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.