<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Web Deployment Tool (MS Deploy)</title><link>http://forums.iis.net/1144.aspx</link><description>Questions about using the Microsoft Web Deployment Tool to sync or migrate sites and servers.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Why I have to run the msdeploy twice to make rename rule working</title><link>http://forums.iis.net/thread/1885303.aspx</link><pubDate>Wed, 19 Nov 2008 00:41:33 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1885303</guid><dc:creator>yaminij</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1885303.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1144&amp;PostID=1885303</wfw:commentRss><description>&lt;p&gt;From your output, it does look like the MYQA rule did kick in on the first sync. As per the MYQA rule, all the qa.config files should become web.config files. If you look at c:\2abc after your first sync, you should only find web.config files, which is what you expect. But again, since you already have a web.config file under the same path, it&amp;nbsp;might&amp;nbsp;get overwritten. You can do a -verbose to see how its getting overwritten.&lt;/p&gt;</description></item><item><title>Re: Why I have to run the msdeploy twice to make rename rule working</title><link>http://forums.iis.net/thread/1885299.aspx</link><pubDate>Wed, 19 Nov 2008 00:12:13 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1885299</guid><dc:creator>renewbeie</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1885299.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1144&amp;PostID=1885299</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Here is the console display for the first run&lt;/p&gt;&lt;p&gt;C:\Program Files\IIS\Microsoft Web Deploy&amp;gt;MSDeploy.exe -verb:sync -source:conten&lt;br /&gt;tPath=C:\1abc&amp;nbsp; -dest:contentPath=C:\2abc&amp;nbsp; -enablerule:MYQA&lt;br /&gt;Action: Adding child dirPath (C:\2abc\admin)&lt;br /&gt;Action: Adding child filePath (C:\2abc\admin\dev.config)&lt;br /&gt;Action: Adding child filePath (C:\2abc\admin\prod.config)&lt;br /&gt;Action: Adding child filePath (C:\2abc\admin\web.config)&lt;br /&gt;Action: Adding child filePath (C:\2abc\admin\test.aspx)&lt;br /&gt;Action: Adding child filePath (C:\2abc\admin\test.htm)&lt;br /&gt;Action: Adding child filePath (C:\2abc\admin\web.config)&lt;br /&gt;Action: Adding child dirPath (C:\2abc\user)&lt;br /&gt;Action: Adding child filePath (C:\2abc\user\dev.config)&lt;br /&gt;Action: Adding child filePath (C:\2abc\user\prod.config)&lt;br /&gt;Action: Adding child filePath (C:\2abc\user\web.config)&lt;br /&gt;Action: Adding child filePath (C:\2abc\user\test.aspx)&lt;br /&gt;Action: Adding child filePath (C:\2abc\user\test.htm)&lt;br /&gt;Action: Adding child filePath (C:\2abc\user\web.config)&lt;br /&gt;Action: Adding child filePath (C:\2abc\dev.config)&lt;br /&gt;Action: Adding child filePath (C:\2abc\prod.config)&lt;br /&gt;Action: Adding child filePath (C:\2abc\web.config)&lt;br /&gt;Action: Adding child filePath (C:\2abc\test.aspx)&lt;br /&gt;Action: Adding child filePath (C:\2abc\test.htm)&lt;br /&gt;Action: Adding child filePath (C:\2abc\web.config)&lt;br /&gt;Change count: 20&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Here is the display from second run&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;C:\Program Files\IIS\Microsoft Web Deploy&amp;gt;MSDeploy.exe -verb:sync -source:conten&lt;br /&gt;tPath=C:\1abc&amp;nbsp; -dest:contentPath=C:\2abc&amp;nbsp; -enablerule:MYQA&lt;br /&gt;Action: Adding child filePath (C:\2abc\admin\web.config)&lt;br /&gt;Action: Adding child filePath (C:\2abc\user\web.config)&lt;br /&gt;Action: Adding child filePath (C:\2abc\web.config)&lt;br /&gt;Change count: 3 &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;THANKS again for looking into this issue &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Why I have to run the msdeploy twice to make rename rule working</title><link>http://forums.iis.net/thread/1885290.aspx</link><pubDate>Tue, 18 Nov 2008 23:20:33 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1885290</guid><dc:creator>renewbeie</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1885290.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1144&amp;PostID=1885290</wfw:commentRss><description>&lt;p&gt;Thank you for your response. &lt;/p&gt;&lt;p&gt;My directory structure is indeed super simple test site, just a root with two sub folder. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Root: c:\1abc (root folder with 6 files and 2 sub -folders)&lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;ul&gt;&lt;li&gt;qa.config&lt;/li&gt;&lt;li&gt;prod.config&lt;/li&gt;&lt;li&gt;dev.config&lt;/li&gt;&lt;li&gt;web.config &lt;br /&gt;&lt;/li&gt;&lt;li&gt;test.htm&lt;/li&gt;&lt;li&gt;test.aspx&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;&lt;blockquote&gt;c:\1abc\admin (a sub folder with 6 files )&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;
  &lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;qa.config&lt;/li&gt;&lt;li&gt;prod.config&lt;/li&gt;&lt;li&gt;dev.config&lt;/li&gt;&lt;li&gt;web.config &lt;br /&gt;
    &lt;/li&gt;&lt;li&gt;test.htm&lt;/li&gt;&lt;li&gt;test.aspx&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&amp;nbsp;c:\1abc\user  (another sub folder with 6 files )&lt;/blockquote&gt;&lt;blockquote&gt;
&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;
  &lt;blockquote&gt;
  &lt;/blockquote&gt;
  &lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;qa.config&lt;/li&gt;&lt;li&gt;prod.config&lt;/li&gt;&lt;li&gt;dev.config&lt;/li&gt;&lt;li&gt;web.config &lt;br /&gt;
    &lt;/li&gt;&lt;li&gt;test.htm&lt;/li&gt;&lt;li&gt;test.aspx&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;
&lt;/blockquote&gt;&lt;blockquote&gt;
&lt;/blockquote&gt;&amp;nbsp;
&lt;br /&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&amp;nbsp;&lt;/blockquote&gt;</description></item><item><title>Re: Why I have to run the msdeploy twice to make rename rule working</title><link>http://forums.iis.net/thread/1885262.aspx</link><pubDate>Tue, 18 Nov 2008 19:13:41 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1885262</guid><dc:creator>yaminij</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1885262.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1144&amp;PostID=1885262</wfw:commentRss><description>&lt;p&gt;It seems to work well for me. Is your directory structure very simple? If yes, can you share it out with us?&lt;/p&gt;</description></item><item><title>Why I have to run the msdeploy twice to make rename rule working</title><link>http://forums.iis.net/thread/1885185.aspx</link><pubDate>Tue, 18 Nov 2008 08:53:32 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1885185</guid><dc:creator>renewbeie</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1885185.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1144&amp;PostID=1885185</wfw:commentRss><description>&lt;p&gt;I want to rename different config files into web.config, &lt;/p&gt;&lt;p&gt;Here is my rule of renaming qa.config into web.config&lt;/p&gt;&lt;p&gt;&amp;lt;rule name=&amp;quot;MYQA&amp;quot; enabled=&amp;quot;false&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; type=&amp;quot;Microsoft.Web.Deployment.DeploymentReplaceRule&amp;quot; isDefault=&amp;quot;true&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; objectName=&amp;quot;filepath&amp;quot; targetAttributename=&amp;quot;path&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; match=&amp;quot;qa.config&amp;quot; replace=&amp;quot;web.config&amp;quot;/&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;rule name=&amp;quot;MYPROD&amp;quot; enabled=&amp;quot;false&amp;quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; type=&amp;quot;Microsoft.Web.Deployment.DeploymentReplaceRule&amp;quot; isDefault=&amp;quot;true&amp;quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; objectName=&amp;quot;filepath&amp;quot; targetAttributename=&amp;quot;path&amp;quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; match=&amp;quot;prod.config&amp;quot; replace=&amp;quot;web.config&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Here is my command&lt;br /&gt;&lt;br /&gt;MSDeploy.exe -verb:sync -source:contentPath=C:\1abc&amp;nbsp; -dest:contentPath=C:\2abc&amp;nbsp; -enablerule:MYQA&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am puzzuled by the result.&amp;nbsp;&lt;/p&gt;&lt;p&gt;When I run the command for the first time, all files are copied, but MYQA rule doesn&amp;#39;t trigger&lt;/p&gt;&lt;p&gt;If I run the command again, then rules kicks in. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Is there anything I did wrong?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>