Converting .NET App to x86 native code

前端 未结 5 2264
-上瘾入骨i
-上瘾入骨i 2020-12-05 05:10

There\'s a program written entirely in C# that targets .NET Framework 2.0. Is there a way I could somehow compile (translate) managed EXE to a native one so it could be .NET

5条回答
  •  不思量自难忘°
    2020-12-05 06:04

    2018 Update

    At Build 2018, Microsoft announced .Net Core 3.0 roadmap that support Windows desktop applications (Winform & WPF)

    2017 Update

    For console apps, you can use .net core Self-contained deployments (SCD). Even for a hello world app, your package will 50MB+. You still need to install VC runtime though.

    Update

    As @jenix's comment, .NET Native is only for Windows Store Apps(UWP). After 3 years of it's announcement, this is still true, .net native for desktop may be dropped by microsoft . So this answer is not applicable anymore.

    ========

    Microsoft Announced .NET Native Preview on Build 2014

    With the .NET Native Developer Preview, apps will get deployed on end-user devices as fully self-contained natively compiled code, and will not have a dependency on the .NET Framework on the target device/machine. So, no .NET framework required on the target machine with .NET Native.

    Announcing .NET Native Preview
    Microsoft .NET Native

提交回复
热议问题