I’m going to have a folder of word document templates for a web app. I would like to use relative paths this time. When developing, I intend to use a subfolder in App_Data, but in some real configurations it will probably point to a network share.
Before reinventing the wheel, is there any built in method in aspnet (mvc) that gives a full path from:
- A web app relative path outside the web app folder
- A relative path within app_data
- A full path
The relative (or full) path is retrieved from appSettings if it matters.
Clarification: I’m wondering if there’s a single built in method that can handle all of theese cases as it’s argument, not so much solutions for the separate cases.
It seems the correct answer is “no”.