/// <summary> /// Cannot use SolutionItemExtension.OnModified. It does not seem to be called. /// </summary> protected void OnProjectModified(object sender, SolutionItemModifiedEventArgs args) { if (Project.Loading) { return; } var fileNameChange = args.LastOrDefault(arg => arg.Hint == "FileName"); if (fileNameChange != null) { DotNetCoreProjectFileRenamedHandler.OnProjectFileRenamed(Project); } }
protected override void OnModified(SolutionItemModifiedEventArgs args) { base.OnModified(args); if (Project.Loading || !itemReady) { return; } var fileNameChange = args.LastOrDefault(arg => arg.Hint == "FileName"); if (fileNameChange != null) { SdkProjectFileRenamedHandler.OnProjectFileRenamed(Project); } }