public string GetRelativePath(string filePath, string referencePath)
{
var fileUri = new Uri(filePath);
var referenceUri = new Uri(referencePath);
var relativeUri = referenceUri.MakeRelativeUri(fileUri).ToString();
var relativePath = relativeUri.Replace('/', Path.DirectorySeparatorChar);
return relativePath;
}