为什么对项目名称长度有限制? [英] Why is there limitation on the project name length?

查看:332
本文介绍了为什么对项目名称长度有限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Visual Studio 2010 Professional中命名一个项目,超过34个字符,但我看到了一个从未见过的错误.它告诉我项目名称太大:confused:
任何想法为何如此?

I tried to name a project in Visual Studio 2010 Professional, more than 34 characters and I saw an error which I never saw before. It stated me that the project name is too big :confused:
Any ideas why its so?

推荐答案

您可能想看看
You might want to look at this[^] thread.


我认为您可以离开如果您将完整路径名缩短,则该项目的名称会很长(如果确实需要).为此,请将您的项目解决方案移到磁盘根附近(我使用的是c://myCompany.development/trunk之类的东西).

另外,不要忘记您的程序集名称不必与项目名称相同.您可以使用较短的项目名称和较长的程序集名称.

很好我只是好奇:您为什么达到了这个极限?那是因为您确实需要项目的长名称(然后,为什么吗?),还是因为您碰巧将开发目录放在文件结构中太深了?
I think you can leave with the quite a long simple name of the project (if you really need it) if you make full path name shorter. To do this, move your project solution closer to the disk root (I use something like c://myCompany.development/trunk).

Also, don''t forget that your assembly name does not have to be the same as project name. You can have short project name and long assembly name or the opposite.

This is good. I''m only curious: why did you hit this limit? Is that because you really need a long name of the project (then, why?) or because you happened to put your development directory too deep into the file structure?


您必须有一个长名称项目目录的路径:
每个OS都有一个固有的最大文件名/路径长度等,VS必须遵守这一点.计算出文件名的确切最大字符长度(上限),您的解决方案父文件夹路径就是其中的一部分.
请参阅
You must have a long path to the projects directory:
There is a maximum file name/path length etc inherent to each OS and VS has to respect that. The exact maximum character length for a filename is calcultated (up to an upper limit) and your solution parent folder path is part of it.
See MSDN how a project max path and solution name length is calculated[^] VS2010 might have a different way of working, but the principle will be the same.


这篇关于为什么对项目名称长度有限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆