C#.Net - Console application release
Posted on 2008-10-07
I have just completed building a C#.NET console application. I've been running it the whole time out of Visual Studio 2008 and it has been working fine. I was under the impression that when I was finished with it that I would be able to take this application and run it on any other computer that has the .NET Framework installed. I tried to copy the .exe file from the bin/debug folder to the computer where it is supposed to run daily, but when I try to execute it just opens a command prompt window for a few moments and then closes it without doing anything or offering any warning.
I went back to my computer where I have been running the application from Visual Studio and tried to run the application from the bin/debug directory. This gave me an error message. How do I go about getting an executable file that I can run on any computer with the .NET Framework?
Also, I have added a reference class to the project in the form of a .dll file. This is also present in the /bin/debug directory. Once I have the program compiled, will it still rely on that file to work properly?