c# postbuild event

A

Ahmet

Hi All,

I have an c# application including lots of different dll projects.
On project options, I have coded a postbuild event script shown below
to gather all my files in different project in one path after successfull
build.

copy $(TargetPath) Y:\CommonFiles\$(TargetFileName)

after build, this script generates a postbuild.bat file and in this file i
have this line
copy D:\Project\FRONT END\SCREENS\F_0001\F_0001\bin\Release\F_0001.dll
Y:\CommonFiles\BIN\F_0001.

this copy command fails -i think- because of having long than (8+3)
filename + ext.

How can I make this script run successfully ?
ps: Changing path of project is not desired solution, because we have
thousands of projects under this
path (D:\Project\FRONT END) and has VSS mapping.
 
M

Miha Markic [MVP C#]

Hi Ahmet,

Try putting paths in partenthesis:
copy "$(TargetPath)" "Y:\CommonFiles\$(TargetFileName)"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top