Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# Code Minification Tools and Techniques

Tags:

c#

minify

I realize this is a rather odd request, but I was wondering if anyone was aware of some minification/obfuscation tools that work on C# source code (not a compiled assembly). I am trying to reduce the character count of an already written application to meet a character limit and I can't seem to find any tools that will help me achieve this task.

Main features I am interested in:

  • Strip Whitespace
  • Shorten Variable Names

It doesn't have to be a full on obfuscator, just something that will reduce the character count of a block of code quickly and conveniently.

This is not intended to have any practical or real world application, it's for a competition.

like image 959
Nathan Taylor Avatar asked Sep 07 '09 22:09

Nathan Taylor


People also ask

What C is used for?

C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...

Is C language easy?

Compared to other languages—like Java, PHP, or C#—C is a relatively simple language to learn for anyone just starting to learn computer programming because of its limited number of keywords.

What is the full name of C?

In the real sense it has no meaning or full form. It was developed by Dennis Ritchie and Ken Thompson at AT&T bell Lab. First, they used to call it as B language then later they made some improvement into it and renamed it as C and its superscript as C++ which was invented by Dr.


1 Answers

@Ivan's CSharpMinifier didn't work for me. So I am using this one instead. There is a demo web app if you want to try.

like image 196
NearHuscarl Avatar answered Sep 22 '22 22:09

NearHuscarl