last day (14 days later) » 

11:46 AM
1
A: Copy the entire contents of a project in a folder of another project, when build (Visual Studio 2013)

Rohit PrakashTry this- Assuming PJ2\MyFolder is your output folder Copy build assembly and all the components in project PJ1 xcopy "$(ProjectDir)$(OutDir)*.*" "$(SolutionDir)LambdaInXdocument\Myfolder" /E /Y Copy all the files(.cs and others) & directories where .csproj resides- xcopy "$(Project...

 
Performing xcopy "$(ProjectDir)$(OutDir)*.*" "$(SolutionDir)PJ2\myFolder" /E /Y, it copy just PJ1.dll , PJ1.dll.config and PJ1.pdb
 
This command will copy all the files existing in the source folder. ie. your PJ1 build folder. It would help to understand better, if you can tell whats more you want to copy ?
 
is correct as I wrote it? exactly as I wrote it
 
as your command says, you want to copy all the files( including .cs & all others) and directories in your project PJ1 to Project PJ2\MyFolder directory. Is it what you want ?
 
yes, is what I want
 
11:46 AM
Ok, I have edited the answer. 2nd one suits your requirement.
 
Excellent! It works for me! Thanks. An additional detail: how can I exclude files .csproj or with other extensions from copy?
Hi :)
 
you can use /exclude option to exclude the files
 
can u make me an example on my case?
because in past I tried to make it
but It doesn't work
I tried to refeer to a txt file
*refer
 
can you please post the command you had tried with ?
 
12:03 PM
No no
thanks however
I've solved
 
ok. glad that you done it. . .. .
 
:)
listen
when I perform my xcopy
I'd like to convert index.html (of PJ1) to index.aspx
simply change extension
Now I make it manually
I wondered: is there a way to change the file extension of index from .html to .aspx automatically in xcopy?
 

last day (14 days later) »