Marko Apfel

EAI, BizTalk, SQL Server, C#

  Home  |   Contact  |   Syndication    |   Login
  61 Posts | 2 Stories | 22 Comments | 4 Trackbacks

News



Article Categories

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 10/27/2009 7:24 PM links of london Necklace
It was a very nice idea! Just wanna say thank you for the information you have shared. Just continue writing this kind of post. I will be your loyal reader. Thanks again. ``

# re: Post-build event with folders which contains spaces 10/29/2009 10:13 PM tiffany jewellery
good post.thank you for sharing.

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