简体   繁体   中英

What is required to run a c# console application on a computer

I have created a simple c# console application with .net framework 2.0 that uses MySql. What steps should I do in order to get the program run on another computer(Windows Server 2008)?

I already have MS .Net framework Clent Profile and MS .Net framework Clent Profile Extended installed.

Should I install .net framework 2.0 Service pack too on the other pc?

Thanks.

You just need .Net Framework 2.0 or later to be installed on the machine.

It would would be better to make an installer.

Make sure you have .Net framework 2.0 installed on the computer. Also make sure you have the .Net dlls required for making connection. If your application is going to use the local machine as MySQL server then, you may have to intall MySQL on the client machine as well, or you can make an installer with MySQL installation included. You can use InnoSetup or you may check out the following thread Deploy MySQL Server + DB with .Net application

Environment - .Net Framework.

Version - Same as one or higher in which you app is targeted.

Why i said no particular version number because what if you app is in 4.0 and you have 2.0 installed?

That's why same version or higher.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM