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

By using the argument line array of Main(string[] args) it is important to know such effect.

If you specify a quoted folder (e.g. "C:\Projects\PDE\PRJ_EsriDE_Common\trunk\code\Commons\bin\Debug\") the ending backslash makes troubles.

My whole argument line (linebreaked for better viewing):

-inDir:"C:\Projects\PDE\PRJ_EsriDE_Common\trunk\code\Commons\bin\Debug\"
-recursive:false
-filter:*
-separation:AssemblySeparated
-outDir:"C:\Projects\PDE\PRJ_EsriDE_Common\trunk\code\Commons\bin\Debug\"
-outFile:AllInOneReg
-outFormat:RegistryFile

is wrongly splitted to:

The following variant without a ending backslash:

-inDir:"C:\Projects\PDE\PRJ_EsriDE_Common\trunk\code\Commons\bin\Debug"
-recursive:false
-filter:*
-separation:AssemblySeparated
-outDir:"C:\Projects\PDE\PRJ_EsriDE_Common\trunk\code\Commons\bin\Debug"
-outFile:AllInOneReg
-outFormat:RegistryFile

is no problem:

and also the forward slashes:

-inDir:"C:/Projects/PDE/PRJ_EsriDE_Common/trunk/code/Commons/bin/Debug/"
-recursive:false
-filter:*
-separation:AssemblySeparated
-outDir:"C:/Projects/PDE/PRJ_EsriDE_Common/trunk/code/Commons/bin/Debug/"
-outFile:AllInOneReg
-outFormat:RegistryFile

works in both variants (with and without an ending one):

posted on Wednesday, November 25, 2009 5:21 AM