diff --git a/src/GUI/EFCorePowerTools/EFCorePowerToolsPackage.cs b/src/GUI/EFCorePowerTools/EFCorePowerToolsPackage.cs index 58c16f7ff..e30245633 100644 --- a/src/GUI/EFCorePowerTools/EFCorePowerToolsPackage.cs +++ b/src/GUI/EFCorePowerTools/EFCorePowerToolsPackage.cs @@ -328,7 +328,8 @@ private async void OnProjectMenuBeforeQueryStatus(object sender, EventArgs e) menuCommand.Visible = false; - if (menuCommand.CommandID.ID == PkgCmdIDList.cmdidDbDgml) + if (menuCommand.CommandID.ID == PkgCmdIDList.cmdidDbDgml + || menuCommand.CommandID.ID == PkgCmdIDList.cmdidAbout) { menuCommand.Visible = true; return; @@ -341,7 +342,8 @@ private async void OnProjectMenuBeforeQueryStatus(object sender, EventArgs e) return; } - if (menuCommand.CommandID.ID == PkgCmdIDList.cmdidReverseEngineerCodeFirst) + if (menuCommand.CommandID.ID == PkgCmdIDList.cmdidReverseEngineerCodeFirst + || menuCommand.CommandID.ID == PkgCmdIDList.cmdidT4Drop) { menuCommand.Visible = await project.IsNet60OrHigherAsync() || await project.IsNetStandardAsync(); return; @@ -358,11 +360,6 @@ private async void OnProjectMenuBeforeQueryStatus(object sender, EventArgs e) && await project.IsInstalledAsync(new NuGetPackage { PackageId = "Microsoft.EntityFrameworkCore" }); return; } - - if (menuCommand.CommandID.ID == PkgCmdIDList.cmdidT4Drop) - { - menuCommand.Visible = await project.IsNet60OrHigherAsync(); - } } #pragma warning disable VSTHRD100 // Avoid async void methods