protected SaveNestedProjectItemInProjectFile ( string newFileName ) : void | ||
newFileName | string | |
return | void |
protected virtual void SaveNestedProjectItemInProjectFile(string newFileName)
{
string existingInclude = this.ItemNode.Item.EvaluatedInclude;
string existingRelativePath = Path.GetDirectoryName(existingInclude);
string newRelativePath = Path.Combine(existingRelativePath, newFileName);
this.ItemNode.Rename(newRelativePath);
}