c# postbuild event

  • Thread starter Thread starter Ahmet
  • Start date Start date
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.
 
Hi Ahmet,

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