public static string DecodePath(SolutionEntityItem item, string path)
        {
            IPathHandler ph = item.GetItemHandler() as IPathHandler;

            if (ph != null)
            {
                return(ph.DecodePath(path));
            }
            else
            {
                string basePath = Path.GetDirectoryName(item.FileName);
                return(FileService.AbsoluteToRelativePath(basePath, path));
            }
        }
Esempio n. 2
0
		public static string EncodePath (SolutionEntityItem item, string path, string oldPath)
		{
			IPathHandler ph = item.GetItemHandler () as IPathHandler;
			if (ph != null)
				return ph.EncodePath (path, oldPath);
			else {
				string basePath = Path.GetDirectoryName (item.FileName);
				return FileService.RelativeToAbsolutePath (basePath, path);
			}
		}