We help IT Professionals succeed at work.

Visual c# compiler

ed_dalian
ed_dalian asked
on
Medium Priority
221 Views
Last Modified: 2010-04-16
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.
Comment
Watch Question

Senior Systems and Integration Developer
CERTIFIED EXPERT
Commented:
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.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.