Solved

Can you make a Visual Studio 2005 app that does not require .NET to be installed?

Posted on 2007-03-27
4
201 Views
Last Modified: 2013-11-26
Is it possible to compile and link an app in Visual Studio 2005 that DOES NOT require .NET to be installed on the machine that will run the app?  In other words, can you link in the .NET stuff so the program is truly "stand alone" and users would not need .NET framework installed at all?  In other IDEs in the past you usually could create "slim" EXEs which used calls in common DLLs that were needed for the program to run OR you could link everything into a single, larger EXE that could run on its own.

Thanks
0
Comment
Question by:dlwynne
4 Comments
 
LVL 67

Expert Comment

by:sirbounty
ID: 18802971
I think the framework is a core dependency, so would suspect this is not possible...
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 18803046
hi,

  I agree with sirbounty.
  AFAIK, there is no way around that requirement.

0
 
LVL 63

Assisted Solution

by:Fernando Soto
Fernando Soto earned 40 total points
ID: 18803146
All .Net languages except for C++, and only when compiled in native code, need the .Net Framework. This is because when you compile a program in .Net you create a MSIL, Microsoft Intermediate Language, file with a exe extension. When the system runs the file it then compiles it into native code using the .Net Framework and all its files.

So yes you do need it installed.
0
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 85 total points
ID: 18804231
It is ~technically~ possible to NOT have the ENTIRE framework installed for your app to run.

There are third party tools that basically take all the .Net runtime dependencies for your app and compile them all into a STANDALONE executable.

I've never used on myself but have seen posts here on EE of others who claim to have successfully used them.

See:
http://thinstall.com/solutions/net_virtual.php
http://www.xenocode.com/Products/Postbuild/Features.aspx

There may be more tools out there...I'm not sure!
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question