Hi, I'm having problems with "preprocessor" conditions:
if I have the next code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CSharpMinifier.GUI
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
#if DEBUG
string text = "";
#else
string myOtherTestText = "hi";
#endif
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmMain());
}
}
}
The code is not minified correctly:
using System;using System.Collections.Generic;using System.Linq;using System.
Threading.Tasks;using System.Windows.Forms;static class b{[STAThread]static void
Main(){
#if DEBUG
string text = "";
#else
var a="hi";
#endif
Application.EnableVisualStyles();Application.
SetCompatibleTextRenderingDefault(false);Application.Run(new frmMain());}}
As you see, the first variable's name "text" stills unminified.
Can you add "preprocessor" support?
Thank you very much!
Best regards,
Luciano Rasente
Hi, I'm having problems with "preprocessor" conditions:
if I have the next code:
The code is not minified correctly:
As you see, the first variable's name "text" stills unminified.
Can you add "preprocessor" support?
Thank you very much!
Best regards,
Luciano Rasente