Thursday, March 22, 2012

Web Deployment. Rename Directory and File. Is this possible?

Hello,
I am using Visual Studio 2008 and Web Deployment Projects:
http://blogs.msdn.com/webdevtools/a...p-released.aspx
Is it possible to rename a directory and a folder when the web site
building finishes?
I was trying to do something inside the <Target Name="AfterBuild"> but
until know I couldn't find a command for this.
Thanks,
Miguel"shapper" <mdmoura@.gmail.com> wrote in message
news:d5c2f74b-015f-4447-b4b1-be23023f5813@.e6g2000prf.googlegroups.com...

> I am using Visual Studio 2008 and Web Deployment Projects:
> http://blogs.msdn.com/webdevtools/a...p-released.aspx
> Is it possible to rename a directory and a folder when the web site
> building finishes?
> I was trying to do something inside the <Target Name="AfterBuild"> but
> until know I couldn't find a command for this.
1) Use the <MakeDir /> tag to create the new directory
2) Use the <Copy SourceFiles /> tag to copy files from the directory you
want to "rename" into the new directory
3) Use the <RemoveDir /> tag to delete the directory you want to "rename"
Mark Rae
ASP.NET MVP
http://www.markrae.net
On Jan 5, 4:15 pm, "Mark Rae [MVP]" <m...@.markNOSPAMrae.net> wrote:
> "shapper" <mdmo...@.gmail.com> wrote in message
> news:d5c2f74b-015f-4447-b4b1-be23023f5813@.e6g2000prf.googlegroups.com...
>
>
>
> 1) Use the <MakeDir /> tag to create the new directory
> 2) Use the <Copy SourceFiles /> tag to copy files from the directory you
> want to "rename" into the new directory
> 3) Use the <RemoveDir /> tag to delete the directory you want to "rename"
> --
> Mark Rae
> ASP.NET MVPhttp://www.markrae.net
And to rename a file?
Thanks,
Miguel

0 comments:

Post a Comment