/// <summary> /// Executes the action. /// </summary> public override void Execute() { string currentPath = (string)CurrentItem.Properties.Item("FullPath").Value; string currentSolutionDir = Path.GetDirectoryName(currentPath); string newFilename = Path.Combine(currentSolutionDir, this.NewItemName); CurrentItem.SaveAs(newFilename); File.Delete(currentPath); }