0

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?

Caustix
  • 569
  • 8
  • 26
  • right click on application in Start Menu, select more , select open file location – Kumar Garapati Oct 03 '17 at 17:24
  • 1
    There are a number of deployment options that use the word "Publish". The answer here depends on exactly what you chose. – Joel Coehoorn Oct 03 '17 at 17:24
  • Its gonna save it in C:\Users\You\AppData\Local\Apps\2.0\ if you used the default publish option with ClickOnce – I.B Oct 03 '17 at 17:26
  • Published to C: using wizard "From a CD-ROM or DVD-ROM" and "The application will not check for updates". Right clicking on the start menu takes me to C:\Users\me\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MyApp. The output files are nowhere to be seen – Caustix Oct 03 '17 at 17:36

2 Answers2

1

It will usually save them in

C:\Users\You\AppData\Local\Apps\2.0\
I.B
  • 2,925
  • 1
  • 9
  • 22
  • Not in there either sorry – Caustix Oct 03 '17 at 18:11
  • Actually you were right, the files were buried under C:\Users\me\AppData\Local\Apps\2.0\P95GG51P.EN7\3OGPD47T.JGR\pipe..tion_0000000000000000_0001.0000_fa2d6a4be4f2779b – Caustix Oct 03 '17 at 18:19
1

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%

Boluc Papuccuoglu
  • 2,318
  • 1
  • 14
  • 24