你有C#微小任何提示? [英] Do you have any tips for C# Minification?
问题描述
我需要来缩小一些C#代码在Silverlight的.cs和.xmal文件屈指可数。什么是你保持一个代码库和运行的工具来生成一个项目缩小的代码提示?
I need to minify some C# code in a handful of Silverlight .cs and .xmal files. What are your tips for maintaining one code base and running a "tool" to generate minified code for a project?
是否有任何工具(如ReSharper的),将做到这?如果不完全,部分或协助以某种方式...
Are there any tools (like Resharper) that will do this? If not fully, partially or assist in some way...
编辑:我意识到没有必要对C#缩小。这是我做的,它不会对从表面意义上的锻炼。 (这不是功课。)
I realize that there is no need for C# minification. This is an exercise that I'm doing that does not make sense on the face of it. (This is not homework.)
推荐答案
怎么样源代码混淆?他们一般缩写名称,等等 - 当然删除空白
How about a source-code obfuscator? They generally abbreviate names, etc - and certainly remove white space.
例如,的此处,与演示这里一>(虽然你可能会想,如果可以禁用字符串编码)。请注意,这不是一个直接的建议:这只是第一次打我得到的 C#代码混淆。
For example, here, with demo here (although you'd probably want to disable the string encoding if possible). Note that this isn't a direct recommendation: this is just the first hit I got for C# code obfuscator.
这篇关于你有C#微小任何提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!