Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Is .Net programs able to be compiled into native code?

Is .Net programs able to be compiled into native code?

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpc++dotnetquestion
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cateyes99
    wrote on last edited by
    #1

    Is .Net programs (C#, VB.Net) able to be compiled into native code, then could run without .Net framework directly on OS like other normal executables? Thanx very much.

    D J 2 Replies Last reply
    0
    • C cateyes99

      Is .Net programs (C#, VB.Net) able to be compiled into native code, then could run without .Net framework directly on OS like other normal executables? Thanx very much.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Not really, but yes. It is possible, but not recommended. There are a couple of products out there that can compile a .NET app down to native code, plus importing all the code that the assemblies reference, effectively building in parts of the .NET Framework. But, those products are VERY expensive. The problem with using them is security updates to the .NET Framework will not affect these native-compiled apps, effectively making them security holes in a customers systems. In order to patch these holes, your app would have to be recompiled and redistributed to the customers.

      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      Z 1 Reply Last reply
      0
      • C cateyes99

        Is .Net programs (C#, VB.Net) able to be compiled into native code, then could run without .Net framework directly on OS like other normal executables? Thanx very much.

        J Offline
        J Offline
        Jaiprakash M Bankolli
        wrote on last edited by
        #3

        Nope, my views are .NET executables are have a special stubs in their exe which instructs OS that these exe are .NET exe and should be executed under .NET framework ....

        Regards, Jaiprakash M Bankolli jaiprakash.bankolli@gmail.com http://jaiprakash.blog.com/

        1 Reply Last reply
        0
        • D Dave Kreskowiak

          Not really, but yes. It is possible, but not recommended. There are a couple of products out there that can compile a .NET app down to native code, plus importing all the code that the assemblies reference, effectively building in parts of the .NET Framework. But, those products are VERY expensive. The problem with using them is security updates to the .NET Framework will not affect these native-compiled apps, effectively making them security holes in a customers systems. In order to patch these holes, your app would have to be recompiled and redistributed to the customers.

          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          Z Offline
          Z Offline
          Zhendalf
          wrote on last edited by
          #4

          There are a couple of products out there that can compile a .NET app down to native code

          What products?

          O 1 Reply Last reply
          0
          • Z Zhendalf

            There are a couple of products out there that can compile a .NET app down to native code

            What products?

            O Offline
            O Offline
            Obaid ur Rehman
            wrote on last edited by
            #5

            Try this.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups