Re: Copy protection for a .NET application

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 11/27/04


Date: Sat, 27 Nov 2004 19:58:09 -0000

Massimo <barone@mclink.it> wrote:
> > You can skip MSIL and compile directly to machine code if you want. In
> > fact, you can obfuscate and then compile to machine code for double
> > protection. You don't have to release your program in MSIL. However, if
> > you do go straight to machine code then you will loose the cross platform
> > benefits of MSIL. That means you will have to complie separate assembiles
> > for PC, MAC and so on.
>
> Didn't know about this; how can I generate machine code? I was talking about
> a Windows application here.

See http://www.pobox.com/~skeet/csharp/faq/#framework.required

I can't say I'd recommend going that route though - while I haven't
used the products in question, the .NET framework will clearly have
gone through a lot more testing (especially if you include the
"testing" which all of us are doing every time we run some .NET code)
than the linkers. I'd certainly recommend that if you take that route,
you do it early on and do as much of your development and testing using
the product as possible, largely ignoring the normal framework. That
may well end up costing a lot in terms of ease of development, of
course...

-- 
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


Relevant Pages

  • Re: Visual C# program without .NET - possible?
    ... The code itself is compiled to MSIL, not machine code, then ... placed in a PE .exe. ... mscorlib.dll to run the MSIL - and mscorlib is a .net cornerstone. ... I've heard mixed reviews about it - and I ...
    (microsoft.public.dotnet.framework)
  • Re: Copy protection for a .NET application
    ... Use the NGEN utility that comes with the .Net Framework. ... Robby ... >> You can skip MSIL and compile directly to machine code if you want. ... You don't have to release your program in MSIL. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Copy protection for a .NET application
    ... Use the NGEN utility that comes with the .Net Framework. ... Robby ... >> You can skip MSIL and compile directly to machine code if you want. ... You don't have to release your program in MSIL. ...
    (microsoft.public.dotnet.framework)
  • Re: Copy protection for a .NET application
    ... Use the NGEN utility that comes with the .Net Framework. ... Robby ... >> You can skip MSIL and compile directly to machine code if you want. ... You don't have to release your program in MSIL. ...
    (microsoft.public.dotnet.general)
  • Re: What does Visual Studio Express with my code?
    ... the C# decompiler and i recieved the functions of my Programm ... Visual C++ 2005 can produce machine code, if you build your project as Win32 application. ... If you need to use .NET, there are some things you can do to make your MSIL less susceptible to reverse engineering. ...
    (microsoft.public.vc.language)