Parsing argument line with a folder-parameter ending with backslash

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...

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:

Screenshot for Parsing argument line with a folder-parameter ending with backslash

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:

Screenshot for Parsing argument line with a folder-parameter ending with backslash

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):

Screenshot for Parsing argument line with a folder-parameter ending with backslash