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

Image Galleries

BizTalk

C#

Enterprise Library

SAP

SQL Server

Technologie

For a general applicability i tried to specify the WorkingDirectory attribute in a qotted manner:


<WorkingDir>&quot;$(SolutionRoot)\EsriDE.Commons\tools\EsriDE\&quot;</WorkingDir>

or


<DoubleQuotes>%22</DoubleQuotes>
<WorkingDir>$(DoubleQuotes)$(SolutionRoot)\EsriDE.Commons\tools\EsriDE\$(DoubleQuotes)</WorkingDir>

The Exec task self is


<Exec
  WorkingDirectory="$(WorkingDir)"
  Command="$(ExtractComCategories) $(InputDirectoryArg) $(FilterArg) $(SeparationArg) $(OutputDirectoryArg) $(OutputFileArg) $(OutputFormatArg)" />

Every variant throws during building the exception MSB6003 (The directory name is invalid):


"E:\builds\RXXXXX_Sourcecode\APF_Evaluation\BuildType\..\Sources\EsriDE.Commons\tools\EsriDE\EsriDE.Utilities.Build.Com.ComCategoryExtractor.exe"
-inDir:"E:\builds\RXXXXX_Sourcecode\APF_Evaluation\Binaries\Debug" -filter:* -separation:AssemblySeparated
-outDir:"E:\builds\RXXXXX_Sourcecode\APF_Evaluation\Binaries\Debug" -outFile:AllInOneReg -outFormat:RegistryFile
E:\builds\RXXXXX_Sourcecode\APF_Evaluation\BuildType\TFSBuild.proj(70,3):
error MSB6003: The specified task executable could not be run.

The directory name is invalid

 

I have no idea for a solution. Now the WorkingDirectory is not quoted.

posted on Friday, November 27, 2009 10:01 AM

Feedback

# re: MSBuild Exec task: using quotes in WorkingDirectory does not work 2/11/2010 1:47 PM Chris Lukowski
I was able to solve this issue by backing up and deleting the TeamBuildTypes folder and creating a new agent and build type. cut and pasted the tasks, etc. from the original tfsbuild.proj file into the new one. not sure if this will help you, but it worked for us.

# re: MSBuild Exec task: using quotes in WorkingDirectory does not work 2/11/2010 5:10 PM Marko Apfel
Because the context of the woking directory is very clear the system does not need quotes. The string (with or without spaces" is taken as one directory.

# re: MSBuild Exec task: using quotes in WorkingDirectory does not work 12/29/2010 12:38 PM emlak
thanks for the great article.



# re: MSBuild Exec task: using quotes in WorkingDirectory does not work 3/15/2018 11:42 AM sharukh khan
what if we put manually like that &quot; ?

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