locked
Easy Question - Visual Studio file+path character limit, 256 right? RRS feed

  • Question

  • I know that Microsoft increased the path+filename limit from 11+3 to 256 years ago when they released Windows 95 Operating System and as far as I know thats still the upper character limit imposed today by Windows 7. Why is it that Visual Studio won't let me use that many characters? I tried to create a new project in Visual Studio with a very long path+filename but it was nowhere near the 256 character limit imposed by the Operating System. I counted close to 100 characters, including path and filename. Does Visual Studio impose its own path+filename character limit? I guess it would make some sense to do so since it is highly likely that new files will be added to the project at later times. Anyone know the character limit? Thanks.
    System configuration: Winndows 7 RTM, Gigabyte GA-EP45-UD3L motherboard, Intel Pentium Dual-Core E6300 Wolfdale @ 2.8GHz, 4GB PC-1066 DDR2 Patriot Viper Memory, 500 GB Western Digital Hard Disk, GeForce 8800GT Videocard
    Monday, June 28, 2010 5:42 AM

Answers

  • Hi BradleyA,

                    Thank you for your active participation and discussion in MSDN forum.

     

                    As far as I understood, you might say the length of  ‘Location’ (set file’s path).

                    I attempt to input a long character including ‘path’ and ‘filename’. On my computer (Visual Studio 2010) the max length is 131.  

                    About the file's name, we have some options:

                    I think that the file name should be convenient and remembered easily or the file name should be meaningful.

                   

                    Hope this helps you! If you have doubts  and concern,  please  feel free to let me know.

    Best Regards

    Axel Gong

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by YiChun Chen Monday, July 5, 2010 3:58 AM
    Tuesday, June 29, 2010 7:39 AM
  • Hi BradleyA,

    Thank you for your post.

    This is a limit set by the .NET Framework.
    Please see: http://blogs.msdn.com/mohamedg/archive/2007/12/14/file-system-limits.aspx

    For similar concern, you could refer to the following blog:
    http://sdolha.spaces.live.com/blog/cns!4121802308C5AB4E!5040.entry

    Hope this helps! If you have any concern, please feel free to let me know.

    Best regards,
    Yichun Chen

    (This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.)

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Edited by YiChun Chen Wednesday, June 30, 2010 11:21 AM typo
    • Marked as answer by YiChun Chen Monday, July 5, 2010 3:58 AM
    Wednesday, June 30, 2010 11:20 AM

All replies

  • Hi BradleyA,

                    Thank you for your active participation and discussion in MSDN forum.

     

                    As far as I understood, you might say the length of  ‘Location’ (set file’s path).

                    I attempt to input a long character including ‘path’ and ‘filename’. On my computer (Visual Studio 2010) the max length is 131.  

                    About the file's name, we have some options:

                    I think that the file name should be convenient and remembered easily or the file name should be meaningful.

                   

                    Hope this helps you! If you have doubts  and concern,  please  feel free to let me know.

    Best Regards

    Axel Gong

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by YiChun Chen Monday, July 5, 2010 3:58 AM
    Tuesday, June 29, 2010 7:39 AM
  •       Hi BradleyA,

                    I'm writing to follow up the post. Does the above suggestion work?       

              If you have doubts and concern, please feel free to let me know.

    Best Regards

    Axel Gong

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, June 30, 2010 3:19 AM
  • Hi BradleyA,

    Thank you for your post.

    This is a limit set by the .NET Framework.
    Please see: http://blogs.msdn.com/mohamedg/archive/2007/12/14/file-system-limits.aspx

    For similar concern, you could refer to the following blog:
    http://sdolha.spaces.live.com/blog/cns!4121802308C5AB4E!5040.entry

    Hope this helps! If you have any concern, please feel free to let me know.

    Best regards,
    Yichun Chen

    (This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.)

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Edited by YiChun Chen Wednesday, June 30, 2010 11:21 AM typo
    • Marked as answer by YiChun Chen Monday, July 5, 2010 3:58 AM
    Wednesday, June 30, 2010 11:20 AM