I am in the process of getting an ASP.NET website project under version control, but am having some difficulty adapting my code from a one computer setup to a multiple-editor setup.
Currently, there are strings in this project that load resources by specifying an absolute path (e.g. “C:\Users…\file.ext”) Obviously, the working copies of the project will not be the same for each user’s computer, and so this path needs to change. Is there any way to specify the location of that resource relative to the root of the project? I tried using ~, but that does not seem to work.
Thanks!
Have you tried mapping the relative path to a physical path: