Marko Apfel - Afghanistan/Belgium/Germany

Management, Architecture, Programming, QA, Coach, GIS, EAI

  Home  |   Contact  |   Syndication    |   Login
  187 Posts | 2 Stories | 201 Comments | 4 Trackbacks

News



Twitter | LinkedIn | Xing

Archives

Post Categories

BizTalk

C#

Enterprise Library

SAP

SQL Server

Technologie

 

If you want to use a Post-build event with folders which contains a space often you get an error like:

The system cannot find the file specified.

c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(3397,13):
error MSB3073: The command
"COPY C:\Projekte\_Learning By Doing\EsriDE.QA.StyleCop\bin\Debug\EsriDE.QA.StyleCop.dll 
"C:\Program Files\Microsoft StyleCop 4.3"" 
exited with code 1.

In my case i used the macro $(TargetPath) in following line which contains indirectly the spaces in "_Learning By Doing":

COPY $(TargetPath) "C:\Program Files\Microsoft StyleCop 4.3"

To avoid this error also the makro must putted in quotes.

So the correct line is:

COPY "$(TargetPath)" "C:\Program Files\Microsoft StyleCop 4.3"
posted on Monday, April 27, 2009 3:47 AM

Feedback

# re: Post-build event with folders which contains spaces 5/14/2010 1:12 PM Jirka
Thanks a lot. Saved me a lot of time.

Post A Comment
Title:
Name:
Email:
Comment:
Verification: