The problem: Clickonce puts sub-folders of a project in a different place when used in Visual Studio vs when installed as a Clickonce application.
In Visual Studio they are under:
Directory.GetParent(Environment.CurrentDirectory).Parent
While when installed, they're under:
Environment.CurrentDirectory
Though I can check for Clickonce installation (as shown in an answer to my question here , "closed as not a real question"...) I'm worried this might break at some point - unless I understand exactly why this happens.
So what’s the correct way of getting folders' paths both when running inside Visual Studio, and when installed as Clickonce?