I am trying to get the root folder of the application. I have used the following code, but this gives the bin folder, but what I need is the root folder of the
If you are trying to modify the solution folder, it may make more sense to create a build script than a runtime application. From those scripts, you have easy access to the solution structure.