junni lomo
junni lomo

Reputation: 779

Pre-build x-copy of .net project

I have a asp.net web application(Along with solution) in a folder A at location C:/xxx/A/ I want that before each build operation, the copy of Whole folder A( Including Solution) should be copied to another location - C:/yyyy/B.

Can anyone suggest me the way to do it if its possible ?

Cheers.

Upvotes: 1

Views: 55

Answers (1)

Lucas
Lucas

Reputation: 3500

xcopy "$(SolutionDir)\ToCopy" "c:\destionation" /s /y

Should worke fine.

Upvotes: 3

Related Questions