开发者

Is there a way to enforce case sensitivity of the names of files in a VB.Net project?

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


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜