public string ResolveProjectRelativePath(string projectFile, string projectRelativePath)
{
if (projectFile == null)
{
throw new ArgumentNullException("projectFile");
}
if (projectRelativePath == null)
{
throw new ArgumentNullException("projectRelativePath");
}
projectFile = projectFile.Replace('\\', Path.DirectorySeparatorChar);
projectRelativePath = projectRelativePath.Replace('\\', Path.DirectorySeparatorChar);
var baseUri = new Uri(projectFile, UriKind.Absolute);
var relativeUri = new Uri(projectRelativePath, UriKind.Relative);
return Path.GetFullPath(new Uri(baseUri, relativeUri).LocalPath);
}