Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need .net framework just to run a VB.net .exe?!?!

Status
Not open for further replies.

RebLazer

Programmer
Jun 7, 2002
438
US
I wrote an application using VS.net and sent the .exe to a friend who doesn't have the .net framework installed on his machine. He said that he gets an error when he tries to run the .exe that says he needs "mscoree.dll" to run the .exe file.

Is there anyway for me to compile the solution differently (or something else!) so that he may run my .exe without having to install the .net framework?

Thanks,
Lazer [rainbow]
 
Basically, no. Anything written in a CLR language needs the .net framework to run. That's the way MS designed it. VS.net (or vbc on the command line) compiles to MSIL, and this is JIT compiled at run time, so you might think why not just compile directly to native. But as far as I know, this can't be done. Reasons include security, drawing on resources provided by the .net framework, and others.

This is the way with lots of frameworks. VB6 requires the VB6 runtime dll, Java requires the JVM, etc

Hope this helps.


Mark [openup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top