Reputation: 571
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
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