שתף באמצעות


how to create exe file in visual studio 2010 basic

Question

Thursday, June 14, 2012 8:24 AM

I've downloaded the visual studio 2010 professional trail version.

I have made a small project about serail communication in visual basic.

And now, i hopt to create an exe file , and my software can run in other pc.

All replies (4)

Thursday, June 14, 2012 9:33 AM ✅Answered | 1 vote

       Actually you've already created an .exe file by "building" your code that you tested in debugger mode. However your .exe file may require other files in order to deploy it onto another P/C. I recommend you read this information at the following link;

http://msdn.microsoft.com/en-us/library/2kt85ked.aspx

     Other than that you can actually find a copy of your current executeable in your application folders debug folder. May take a little searching. I'm using Visual Studio 2012 RC and I don't know if the file structure is the same for Visual Studio 2010 but for the application "counter" I look in "C:\Users\John\Documents\Visual Studio 2012\Counter\Counter\obj\Debug\Counter.exe.

You've taught me everything I know but not everything you know.


Thursday, June 14, 2012 10:08 AM

      Also in Visual Studio (2012 RC) with your project open you can go into the PROJECT tab and at the botton will be "application" (your applications name) properties. You can open that and change the "Icon" (you can get Icons off the net for free or create your own. I use free software called GIMP to create my own) to something that will make your programs appearance unique instead of the default Icon which is probably a windows Form Icon for your project. As an example I changed my "counter" applications Icon to a skull and crossbones so my deployed executable now appears as below;

You've taught me everything I know but not everything you know.


Thursday, June 14, 2012 12:25 PM

Yes, I think that's the solution. Btw on VS2010 its in bin\Debug, not obj\Debug :)

If a post is helpful to you or solves a problem, remember to mark it as answer, propose it as answer or vote up.
Check out my development so far!


Thursday, June 14, 2012 1:55 PM | 1 vote

Yes, I think that's the solution. Btw on VS2010 its in bin\Debug, not obj\Debug :)

Bear in mind that the bin folder you will find it in will reflect the current build configuration in Visual Studio.  If you are in Release mode then you would find it in bin/Release.  Commonly you will find Debug mode used while developing (because it allows for corrections during debugging) and then a swtich to Release mode when ready for releasing or publishing.

Speaking of which you can also choose to publish the app by creating an installer. This can easily be done by choosing Project > Publish [app name] from the VS menu.  Follow the publish wizard's steps from there.