C# Without .Net

Hello Fellows,
I’m about to start a project, and in this project i cannot have any framework I must have only the .EXE of the application.

Is it possible to create an EXE in C# that does not depend on .Net framework

Thanks



Answer this question

C# Without .Net

  • Mark Ainsworth

    No. All .NET languages require the .NET Framework on the target system.
  • Aaron Hallberg - MSFT

    C# Without .NET is almost like running an application without Windows :S


  • Andrew O.

    Technically speaking, you can compile any application without mscorlib by giving the parameter /nostdlib to the compiler. But it practically renders your entire application uncompilable unless you give it another library to link to that has all the references that C# needs, e.g. System.Object.

    Now why would you want to do something as not to depend on the .NET Framework You will require to link to something to give you basic functionalities of the language.

    Even C++ needs to be linked to a system library in order to work on any given system.


  • C# Without .Net