Can you run a C # program on a computer without Visual Studio or any other software?

I have a working C # project that I would like to run on another computer. The only problem is that there is no visual studio on the other computer, and I do not want to install any software on it. Is it possible to run a .exe file or something similar to get a graphical interface without a visual studio?

+4
source share
6 answers

I think you are asking if this is possible, and if so, how. As others have said, yes, it is possible. It's all. Your exe will be located in the / bin / debug or / bin / release folder, depending on which mode you compiled. Just send the .exe file to another computer and assuming that it has an updated version of Windows, it will work fine.

+3
source

The only thing required is the .NET Client

+1
source

Yes. VS will create a .msi file with setup.exe for your users to install. As long as users have the correct grid of points, the application will work fine.

0
source

You do not need Visual Studio to run the executable file, but what it needs is that the correct .NET Framework is installed, that is, the version with which the executable was compiled.

0
source

Yes, it is possible, if a version of the .net infrastructure is installed on another computer that meets the requirements of your software, you can send the application through the creation of MSI with the configuration or by sending exe and any DLLs required from inside the bin created during compilation.

0
source

C # is based on the Microsoft .NET Framework. There are several versions of the .NET platform. 1.0 to 4.5

If you create your code in .net framework 2.0, then for your .exe file to work on another computer, it must first install .net framework 2.0 on this computer. The same goes for all other versions.

All frameworks can be downloaded from microsoft.com.

0
source

Source: https://habr.com/ru/post/1446800/


All Articles