C# getting my program to run on a .Net 1.1, win XP system

572 views Asked by At

So I've made the program on windows 10 Visual studio Version 10 in c# as a console application. The program is just monitoring file changes with fsw. I'm now faced with the challenge of doing literally everything in my power to not have to install anything on the PC of which this program will have to run (as in company they don't normally like us installing anything on the old pc's). So I believe I need to compile the program in a lower version of .Net if possible? Any help regarding the matter would be appreciated as most things I find is people wanting to move from 1.1 to higher versions or the odd reference to web applications or c++. Also, (though it may be obvious) I'm not a coder, not even my job really and thus I am quite inexperienced so any answers dumbed down a lot would be incredibly useful. Thanks in advance!

1

There are 1 answers

4
JonasH On

First of all, check if .Net framework is installed if you have not already, and in that case what version it has.

According to .Net version and dependencies windows XP does not include any .Net version. That page also include links on how to check version. The last .net release for windows XP is .Net 4.0. See .Net system requirements.

So there is no indication that you should use .Net 1.1. Either you would use whatever version is installed, or you install some version you want (i.e. the highest supported), or you do not install any version, and do something else.

Modern versions of Visual studio allow targeting of .Net framework from 2.0 and onwards. And I'm fairly sure you can run .Net 2.0 and later version on windows 10 if you install the framework. Using .Net 1.1 would probably require you to use windows XP as the development system, so I would avoid this if at all possible.

I would recommend using a virtual machine for testing, since it allows you to test on windows XP on your machine, and makes it easy to revert any failures. I would probably recommend migrating the entire PC to a virtual machine it at all possible, since this would reduce magnitude of hardware failures, and make backup and restoring much easier.