Visual c# compiler

I have programe a win application by c# and I install WSE on my computer to add reference server2 to do something, but I copy the debug folder to other computer to run my app, it shows error and then I install WSE on this computer it works, what should I do to set my complier to complie .exe that can run on any computer.
ed_dalianAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Carl TawnSystems and Integration DeveloperCommented:
You need to set the "Active Configuration" for your project to "Release" before you compile. The debug version isn't intended to be distributed.

In the IDE, go to Project > YourApp Properties -> Build, there should be an option for "Configuration" change this to "Release".
The menu location above is based on Visual Studio 2005 so may be different for you. When you compile now you should get a Release folder which contains the EXE that can be distributed. Of course the target machine will still need .Net Framework.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.