How to find out which temp (shadow) folder was created for my script?
Options
I need to copy some files to shadow folder (e.g. AppData\Local\Temp\LINQPad5_mcafpqqk\shadow_cvhike). Right now I try to get file that I need, I get FileNotExist and from there I extract shadow folder path, but I would like some cleaner method, is there something that I can use?
Comments
-
If you know a type that comes from one of the dlls that will be in the shadow folder, you can try
typeof(xxxx).Assembly.Location
-
That was helpful, thanks
-
Also note that in LINQPad 6, the current directory matches the shadow directory, so you don't have to specify a folder at all.