Caustix
Caustix

Reputation: 571

Where do the files that normally get saved in bin\Debug get saved when the published application is run?

When run in Visual Studio 2017 debug mode, my C# WPF application saves output files to the bin\Debug folder.

I have now published my application via the Publish Wizard and can run it standalone from the Start menu. Where (if anywhere) are the output files being saved?

Upvotes: 0

Views: 801

Answers (2)

Boluc Papuccuoglu
Boluc Papuccuoglu

Reputation: 2356

In my opinion, this is sort of an X Y problem. Instead of trying to locate the output files depending on publishing scheme, your program should try to be deterministic about where it places its output. Set up a path variable in your program and place the output there. See the answer to this question on how to do that: C# getting the path of %AppData%

Upvotes: 1

I.B
I.B

Reputation: 2923

It will usually save them in

C:\Users\You\AppData\Local\Apps\2.0\

Upvotes: 1

Related Questions