Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / March 2004

Tip: Looking for answers? Try searching our database.

c# postbuild event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ahmet - 20 Mar 2004 10:28 GMT
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.
Miha Markic [MVP C#] - 20 Mar 2004 13:21 GMT
Hi Ahmet,

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

Signature

Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

> Hi All,
>
[quoted text clipped - 17 lines]
> thousands of projects under this
> path (D:\Project\FRONT END) and has VSS mapping.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.