Building for use with non-.net compatible windows systems

C

chris2

This may seem like a strange question to most readers, but I made a
nasty assumption when I made my first little "Hello World" application.

Seeing as I'm 100% novice to Visual Studio, and .net in general, I made
an assumption that compiled programs worked on all windows (at least
modern) computers. I tried to send said application to my friend to see
what I did, and he got the error ".NET Framework Initialization
Error"... it then dawned upon me that whatever I was compiling was
going to depend on the .net framework.

My question is, is there a way to build my program so that it will be
ALL in native code, not just the MSIL? Or do I need a 'higher' version
of VS.NET? (I'm using the academic version)

Thanks for any help...
 
J

Jon Skeet [C# MVP]

This may seem like a strange question to most readers, but I made a
nasty assumption when I made my first little "Hello World" application.

Seeing as I'm 100% novice to Visual Studio, and .net in general, I made
an assumption that compiled programs worked on all windows (at least
modern) computers. I tried to send said application to my friend to see
what I did, and he got the error ".NET Framework Initialization
Error"... it then dawned upon me that whatever I was compiling was
going to depend on the .net framework.

My question is, is there a way to build my program so that it will be
ALL in native code, not just the MSIL? Or do I need a 'higher' version
of VS.NET? (I'm using the academic version)

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

Bishoy Ghaly

Simply .NET is all about runtime compilation and excution, to run your .NET
app you need the compiler of .NET running in the machine (the .NET framework
library) which is available for download from microsoft for free, and it is
planned to be installed automatically with future windows releases.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top