<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>守望轩 &#187; ConfigurationEditor</title> <atom:link href="http://www.watch-life.net/tag/configurationeditor/feed" rel="self" type="application/rss+xml" /><link>http://www.watch-life.net</link> <description>关注IT,审视自我,守望生活, 宁静雅致的小轩馆.</description> <lastBuildDate>Wed, 08 Sep 2010 16:03:38 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>web developer tips (42):用IIS配置编辑器生成脚本来更新配置</title><link>http://www.watch-life.net/visual-studio/configurationeditor-update-configuration.html</link> <comments>http://www.watch-life.net/visual-studio/configurationeditor-update-configuration.html#comments</comments> <pubDate>Wed, 02 Sep 2009 16:06:36 +0000</pubDate> <dc:creator>xjb</dc:creator> <category><![CDATA[Visual Studio]]></category> <category><![CDATA[ConfigurationEditor]]></category> <category><![CDATA[iis]]></category> <category><![CDATA[web developer tips]]></category> <category><![CDATA[配置编辑器]]></category><guid
isPermaLink="false">http://www.watch-life.net/?p=441</guid> <description><![CDATA[原文地址：ConfigurationEditor allows you to generate C#, JavaScript or AppCmd script to update configuration 如果你想写段脚本来添加或更新已经存在的配置，无论配置文件属于那种类型的，比如 administration.config, applicationHost.config 或 网站 或 应用程序的 web.config)，你都可以安装配置编辑器(Configuration Editor)来实现，它是IIS管理包的一部分，使用&#8221;生成脚本&#8221;的功能，用来更新配置，真的是非常有用的功能。 有关IIS配置编辑器模块的安装和下载见: http://www.watch-life.net/visual-studio/configurationeditor-update-configuration.html 32-bit 管理包 ：http://www.iis.net/downloads/default.aspx?tabid=34&#038;g=6&#038;i=1682 64-bit 管理包：http://www.iis.net/downloads/default.aspx?tabid=34&#038;g=6&#038;i=1682 管理包安装完后，在iis里打开配置编辑器 首先，如果想修改配置，选中需要修改的配置文件，然后从下面的下拉配置选中，添加新的或修改现有的配置，然后单击“Generate Scrip”（生成脚本） 从弹出的窗口复制代码，并修改。生成的代码有三种：c#， JavaScript，AppCmd 关于如何使用配置编辑器的更多内容，可以参考下面的链接 1、Using Configuration Editor: Generate Scripts 2、How to Script / Automate IIS7 Configuration 你可能也会喜欢以下文章： web developer tips (43):通过请求处理管道注册IHttpModule (0) web developer [...]]]></description> <content:encoded><![CDATA[<p>原文地址：<a
href="http://blogs.msdn.com/webdevelopertips/archive/2009/01/11/tip-42-did-you-know-configurationeditor-allows-you-to-generate-c-javascript-or-appcmd-script-to-update-configuration.aspx" target="_blank">ConfigurationEditor allows you to generate C#, JavaScript or AppCmd script to update configuration</a></p><p>如果你想写段脚本来添加或更新已经存在的配置，无论配置文件属于那种类型的，比如 administration.config, applicationHost.config 或 网站 或 应用程序的 web.config)，你都可以安装<a
href="http://www.watch-life.net/visual-studio/configurationeditor-update-configuration.html" target="_blank">配置编辑器</a>(Configuration Editor)来实现，它是IIS管理包的一部分，使用&#8221;生成脚本&#8221;的功能，用来更新配置，真的是非常有用的功能。</p><p>有关IIS配置编辑器模块的安装和下载见:<br
/> <a
href="http://www.watch-life.net/visual-studio/configurationeditor-update-configuration.html" target="_blank">http://www.watch-life.net/visual-studio/configurationeditor-update-configuration.html</a></p><p>32-bit 管理包  ：<a
href="http://www.iis.net/downloads/default.aspx?tabid=34&#038;g=6&#038;i=1682" target="_blank">http://www.iis.net/downloads/default.aspx?tabid=34&#038;g=6&#038;i=1682</a></p><p>64-bit 管理包：<a
href="http://www.iis.net/downloads/default.aspx?tabid=34&#038;g=6&#038;i=1682" target="_blank">http://www.iis.net/downloads/default.aspx?tabid=34&#038;g=6&#038;i=1682</a></p><p>管理包安装完后，在iis里打开配置编辑器<br
/> <img
style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="494" alt="ed1" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip42DidyouknowConfigurationEditorallows_14AF7/ed1_thumb.jpg" width="314" border="0" /></p><p>首先，如果想修改配置，选中需要修改的配置文件，然后从下面的下拉配置选中，添加新的或修改现有的配置，然后单击“Generate Scrip”（生成脚本）</p><p><img
style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="246" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip42DidyouknowConfigurationEditorallows_14AF7/image_thumb.png" width="504" border="0" /></p><p>从弹出的窗口复制代码，并修改。生成的代码有三种：c#， JavaScript，AppCmd</p><p><img
style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="287" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip42DidyouknowConfigurationEditorallows_14AF7/image_thumb_1.png" width="504" border="0" /></p><p>关于如何使用配置编辑器的更多内容，可以参考下面的链接</p><p>1、<a
href="http://learn.iis.net/page.aspx/417/using-configuration-editor-generate-scripts/" target="_blank">Using Configuration Editor: Generate Scripts</a></p><p>2、<a
href="http://blogs.iis.net/bills/archive/2008/06/01/how-do-i-script-automate-iis7-configuration.aspx" target="_blank">How to Script / Automate IIS7 Configuration</a></p><p
class="akst_link"></p><h4>你可能也会喜欢以下文章：</h4><ul
class="st-related-posts"><li><a
href="http://www.watch-life.net/visual-studio/register-your-ihttpmodule-depends-on-the-pipeline.html" title="web developer tips (43):通过请求处理管道注册IHttpModule (2009-09-06)">web developer tips (43):通过请求处理管道注册IHttpModule</a> (0)</li><li><a
href="http://www.watch-life.net/visual-studio/hide-a-non-visual-control-in-your-designer.html" title="web developer tips (76):在设计视图隐藏非可视控件 (2010-03-19)">web developer tips (76):在设计视图隐藏非可视控件</a> (0)</li><li><a
href="http://www.watch-life.net/visual-studio/you-can-have-canonical-urls-and-redirects-with-iis-7-0.html" title="web developer tips (25):在iis7下规范URLs和重定向 (2009-07-19)">web developer tips (25):在iis7下规范URLs和重定向</a> (1)</li><li><a
href="http://www.watch-life.net/visual-studio/enable-page-level-tracing-for-your-asp-net-pages.html" title="web developer tips (77):在ASP.NET启动启动页面级跟踪 (2010-03-23)">web developer tips (77):在ASP.NET启动启动页面级跟踪</a> (0)</li><li><a
href="http://www.watch-life.net/visual-studio/set-a-start-page-for-your-web-site-in-visual-web-developer.html" title="web developer tips (84):在Visual Web Developer中设置web网站的起始页 (2010-03-29)">web developer tips (84):在Visual Web Developer中设置web网站的起始页</a> (0)</li><li><a
href="http://www.watch-life.net/visual-studio/know-how-to-scope-master-pages.html" title="web developer tips (40):定义母版页的作用范围 (2009-08-31)">web developer tips (40):定义母版页的作用范围</a> (0)</li><li><a
href="http://www.watch-life.net/visual-studio/absolute-position-controls-on-copy-paste-or-drag-drop-from-toolbox.html" title="web developer tips (18):从工具箱粘贴或拖拽控件时进行绝对定位 (2009-07-07)">web developer tips (18):从工具箱粘贴或拖拽控件时进行绝对定位</a> (0)</li><li><a
href="http://www.watch-life.net/visual-studio/iis-remote-management-for-windows-7.html" title="web developer tips (72): 在Windows 7中使用IIS远程管理器 (2010-01-11)">web developer tips (72): 在Windows 7中使用IIS远程管理器</a> (0)</li></ul>转载请注明作者，出处，以及原始超链接。<br
/>评论数：0 | <b><a
href='http://www.watch-life.net/visual-studio/configurationeditor-update-configuration.html#comment'>评论这篇文章</a></b>|关注作者最近动态,欢迎 follow me <a
href='https://twitter.com/xjb' target='_blank'>xjb@twitter.com</a>|联络作者：iamxjb@gmail.com<br/>© 2010 守望轩 <a
href='http://www.watch-life.net/visual-studio/configurationeditor-update-configuration.html'>www.watch-life.net</a>]]></content:encoded> <wfw:commentRss>http://www.watch-life.net/visual-studio/configurationeditor-update-configuration.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: www.watch-life.net @ 2010-09-09 11:03:07 by W3 Total Cache -->