Do you have any tips for C# Minification?

2019-04-12 15:11发布

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?

Are there any tools (like Resharper) that will do this? If not fully, partially or assist in some way...

EDIT: 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.)

标签: c# xaml minify
4条回答
叛逆
2楼-- · 2019-04-12 15:46

Is that necessary? It was my understanding that the compiled .Net assembly would be sent across the wire, not the C# (or whatever language) source code.

查看更多
Melony?
4楼-- · 2019-04-12 15:55

How about a source-code obfuscator? They generally abbreviate names, etc - and certainly remove white space.

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.

查看更多
Emotional °昔
5楼-- · 2019-04-12 15:55

Are you trying to make something for the Silverlight 10k challenge or something? That's why I'm looking for this info...

http://2009.visitmix.com/MIXtify/TenKGallery.aspx

查看更多
登录 后发表回答