Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. string[] args limit

string[] args limit

Scheduled Pinned Locked Moved C#
csharpvisual-studiohelptutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    laserbaronen
    wrote on last edited by
    #1

    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.

    V B L 3 Replies Last reply
    0
    • L laserbaronen

      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.

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      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

      L 1 Reply Last reply
      0
      • V Vasudevan Deepak Kumar

        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

        L Offline
        L Offline
        laserbaronen
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • L laserbaronen

          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.

          B Offline
          B Offline
          blackjack2150
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • L laserbaronen

            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.

            L Offline
            L Offline
            laserbaronen
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups