Temporary debug releases and final application releases

Posted by baron on Stack Overflow See other posts from Stack Overflow or by baron
Published on 2010-04-06T23:27:55Z Indexed on 2010/04/06 23:33 UTC
Read the original article Hit count: 386

Filed under:
|
|
|
|

I have a quick question regarding debug and release in VS 2008.

I have an app i've been working on - its not yet complete but the bulk of the functionality is there. So basically i'm trying to give a copy of it now to the person helping with documentation - just so they can have a play and get the feel for what i've made.

Now the question is how to provide it to them. I was told to just copy the .exe out of the debug/bin folder and put that onto USB. But when testing, if I run this .exe anywhere else (outside of this folder) it crashes. I've now worked out why this is:

var path = ConfigurationManager.AppSettings["PathToUse"];
var files = Directory.GetFiles(path);

throws a null reference, so that App.config file is not being used. If I copy that file in with the .exe it works again.

So actually my question is regarding the best way to manage this situation. What is the best way to provide a working copy to people, and, is there a reference on preparing apps for release - so everything is packaged together and installed in a clean structured folder heirarchy?

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf