private string ResolveTargetPath()
{
// Set the project properties
foreach (var property in Properties)
{
_project.SetProperty(property.Key, property.Value);
}
// Re-evaluate the project so that the new property values are applied
_project.ReevaluateIfNecessary();
// Return the new target path
return _project.GetPropertyValue("TargetPath");
}