Visual c# compiler

Posted on 2006-03-22
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.
Question by:ed_dalian
    1 Comment
    LVL 52

    Accepted Solution

    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.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
    Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now