string[] args limit
-
I have made an external tool for Visual Studio, and as commandline arguments i pass $(ProjectDir) and $(TargetPath), but the problem is that the second parameter is cut in half. I guess i have reached the maxlength of commandline args? Any ideas on how to go around it?
fafafa, ringakta icke sådant som bringa ack så naggande högönsklig välmåga å baronens ära.
-
I have made an external tool for Visual Studio, and as commandline arguments i pass $(ProjectDir) and $(TargetPath), but the problem is that the second parameter is cut in half. I guess i have reached the maxlength of commandline args? Any ideas on how to go around it?
fafafa, ringakta icke sådant som bringa ack så naggande högönsklig välmåga å baronens ära.
This blog post describes about commandline limits: http://blogs.msdn.com/oldnewthing/archive/2003/12/10/56028.aspx[^]
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
-
This blog post describes about commandline limits: http://blogs.msdn.com/oldnewthing/archive/2003/12/10/56028.aspx[^]
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
Hm thx, so i suppose the limitation is in Visual Studio then? Because my argument is cut at 255 i think, and it doesnt sound reasonable for .NET :)
fafafa, ringakta icke sådant som bringa ack så naggande högönsklig välmåga å baronens ära.
-
I have made an external tool for Visual Studio, and as commandline arguments i pass $(ProjectDir) and $(TargetPath), but the problem is that the second parameter is cut in half. I guess i have reached the maxlength of commandline args? Any ideas on how to go around it?
fafafa, ringakta icke sådant som bringa ack så naggande högönsklig välmåga å baronens ära.
One idea is to pass the name of a file which stores the required values instead of the values themselves and modify your code so that the first thing it does is to get the contents of the file.
-
I have made an external tool for Visual Studio, and as commandline arguments i pass $(ProjectDir) and $(TargetPath), but the problem is that the second parameter is cut in half. I guess i have reached the maxlength of commandline args? Any ideas on how to go around it?
fafafa, ringakta icke sådant som bringa ack så naggande högönsklig välmåga å baronens ära.
Solved it by running my application as a post build event instead, no limitation there ^^
fafafa, ringakta icke sådant som bringa ack så naggande högönsklig välmåga å baronens ära.