473,320 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Can I bypass the need for the .net framework to run a program?

110 100+
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"?
Jan 15 '11 #1
1 4222
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,
  1. Right Click your solution
  2. Select properties
  3. go to the 'Assembly' Tab
  4. set the 'Target Framework' to .NET 2.0
  5. compile your project (run it)
  6. go to your projects debug folder. (usually *Project*\bin\debug\)
  7. 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
Jan 15 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jim | last post by:
I am a FoxPro programmer. What software do I need to program using MS access... I have apps that are non-web standalone and some web based... Do you recommend any learning resources? ...
1
by: Michael | last post by:
Some of our developers are having a problem making certain code work that reads the contents of OUs in our Active Directory. It reads fine when querying a 2000 domain controller but when accessing...
1
by: cheche | last post by:
hi, help me!!! i need hashing program in C or in Java.. tnx, cheche
1
by: Bikini Browser | last post by:
Folks: I am not a programmer so I need some help here... I need a small program written that tells me how many days old my daughter is since she was born. She was born September 26th, 2000. ...
1
by: djg | last post by:
today is the last day that i must submit this assinment and please help to meke this programe now. help me. Part A Each super class vehicle contains plate number, brand name, price and speed. ...
3
by: Silent1Mezzo | last post by:
So I'm sitting at work and they don't have enough work for me. And I'm in need of ideas for different programs. I've already built a program that calculates a random drawing of loto 6/49 tickets...
22
by: arthurps | last post by:
I have 6 files with the name admission.mdb in seperate folders, C:\Admin_1\admission.mdb, C:\Admin_2\admission.mdb, C:\Admin_3\admission.mdb, C:\Admin_4\admission.mdb, C:\Admin_5\admission.mdb,...
5
by: Tim | last post by:
Hi Gurus, I am wondering if we need to install DotNet framework on all the machines to run pages developed in ASP.NET. Can we also run the pages on Linux/Unix? Thanks, Tim
3
tpgames
by: tpgames | last post by:
I'm looking for a program or command line or anything that would allow me to have more than the maximum 4 keyboard layout language groups that keyboard preferences in Ubuntu restricts me too. I can...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.