Search code examples
c#dos

Running a C# console application in dos?


I recently got an old dos/windows 3.1 laptop. I'd like to know if it'd be possible to run my console applications made in c# in it.

I'm aware that this is possibly a very stupid question, but I was really wondering if it would be possible.

If it's not, what is the best option for someone with the very basic knowlegde of c# to write some little programs for dos or windows 3.1?

Thanks in advance.


Solution

  • I recently got an old dos/windows 3.1 laptop. I'd like to know if it'd be possible to run my console applications made in c# in it.

    No.

    Windows 3.1 shipped in 1992 and is a 16 bit operating system. C# 1.0 shipped in 2002, ten years later, and requires a 32 bit operating system.

    If it's not, what is the best option for someone with the very basic knowlegde of c# to write some little programs for dos or windows 3.1?

    Learn Basic instead. Several versions of Basic are available for Windows 3.1.