/// <summary> /// Get the file location as seen in the IDE, used for ResourceDictionary.Source resolution. /// </summary> private string GetSourceLink(ProjectItemInstance projectItemInstance) { if (projectItemInstance.HasMetadata("Link")) { return(projectItemInstance.GetMetadataValue("Link")); } return(projectItemInstance.EvaluatedInclude); }