I wrote a program for a work computer. The program is a very basic calculator to count our till however it writes its findings to a .txt log file and sends the results as an email to our manager. I wrote it using vs2010 on a win 7 machine. When I put the .exe on the other computer running win xp it says it requires an update of the .net framework. Is there a way in which I can bypass this by including files with the .exe or learning about making my program "portable"?
Can I bypass the need for the .net framework to run a program?
Collapse
X
-
With VS2010's Default settings. No.
BUT you can always target .NET 2.0 in VS2010.
The C# Programming Language relies heavily on the .NET Framework, as that all the functions are provided by the framework.
Win XP SP2 comes bundled with .NET 1.1, so an update may still be required, and can not be avoided.
If you create your exe without the need for external files. It can be portable by making it standalone.
To do this, in VS2010,- Right Click your solution
- Select properties
- go to the 'Assembly' Tab
- set the 'Target Framework' to .NET 2.0
- compile your project (run it)
- go to your projects debug folder. (usually *Project*\bin\d ebug\)
- copy the exe file there
You may want to download the .NET 2.0 installer as well to place with your standalone.
http://www.microsoft.com/downloads/e...displaylang=en
if you need further help... just ask.
Sam
Comment