有没有办法强制 VB.Net 项目中文件名区分大小写?
问题说明了一切。有没有办法强制 VB.Net 文件名区分大小写?如果是这样,怎么办!
我试图解决的主要问题是 Windows 不关心文件名的大小写,但其他工具(例如 Subversion)确实关心文件的大小写-姓名
Question says it all. Is there a way to enforce case sensitivity in VB.Net file-names? If so, how!
The primary issue that I am trying to solve is the difference in how Windows doesn't care about the case of a file-name, but other tools, like Subversion, do care about the case of a file-name
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
VB.NET 并不是为支持这一点而设计的,不是。如果区分大小写在您的优先级列表中很高,我建议尝试一种支持它的语言。我想到了 C#,而且这种转变确实没那么糟糕。
编辑:哎呀,看来你改变了你的问题。
VB.NET is not designed to support that, no. If case sensitivity is high on your priority list, I would recommend trying a language that does support it. C# comes to mind, and the transition really isn't that bad.
EDIT: Oops, it looks like you changed your question.
我认为是 Windows API 不关心文件名的大小写,而不是编程语言。
I think it's the Windows API that doesn't care about the casing of filenames, not the programming language.
是的,通过编写自己的编译器。
新问题的新答案 - 您可能最好尝试使其他工具以不区分大小写的方式操作文件名。例如,这里有一个 的预提交挂钩检查不区分大小写的文件名冲突的颠覆。
Yes, by writing your own compiler.
New answer for the new question - you're probably better off trying to make your other tools operate in a case-insensitive way in regards to filenames. For example, here's a pre-commit hook for subversion that checks for case-insensitive filename clashes.