Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I created an app in Visual Studio and want to run it on another computer. Is it better to create an exe file to run the app or load Visual Studio on the other computer and run the app?

What I have tried:

Nothing yet. I thought about publishing the app, but I'm not sure how that will work as I plan to have my customers connect to the app.
Posted
Updated 15-Jul-21 3:51am

There is no such thing as installing Visual Studio just to run an application.

Every time you run the app from inside Visual Studio, under the debugger, you are creating an .EXE file and running it. The debugger then attaches to that running instance.

You can find the executable in your project folder under the bin\Debug or bin\Release folders.
 
Share this answer
 
Both approaches would eventually work.
But then, also transporting your PC to the final user house would work.
What I mean is, writing an executable is the most practical solution.
 
Share this answer
 
Quote:
I created an app in Visual Studio and want to run it on another computer. Is it better to create an exe file to run the app or load Visual Studio on the other computer and run the app?

If giving full project source code to customer is OK for you, VS will do it.
Otherwise an exe is preferable.
 
Share this answer
 
You do not say which language you are using, so there may be other issues you need to consider. But if you are creating an application for your customers then you should at least understand the issues that need to be considered first. And the only safe way is to create an installer, to ensure that the program and any dependencies are installed on the target system. You can do this in a number of different ways, see windows installer - Google Search[^].
 
Share this answer
 
If you want to debug your application on client machine OR want to see live values in your code variables then you need Visual Studio at client machine other wise not required.

You simply copy your release folder ".exe" and if any special ".dll" file(s) to client machine.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900