From 3ea13d2998039c8673209497edde8df411a9a182 Mon Sep 17 00:00:00 2001 From: Harleen Dhaliwal Date: Thu, 16 Jan 2025 10:28:37 -0800 Subject: [PATCH] adding AppliesTo attribute to query providers --- .../VS/Query/LaunchProfiles/LaunchProfileActionProvider.cs | 1 + .../VS/Query/PropertyPages/ProjectActionProvider.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/Query/LaunchProfiles/LaunchProfileActionProvider.cs b/src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/Query/LaunchProfiles/LaunchProfileActionProvider.cs index 524ace7f43..4b87195fd9 100644 --- a/src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/Query/LaunchProfiles/LaunchProfileActionProvider.cs +++ b/src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/Query/LaunchProfiles/LaunchProfileActionProvider.cs @@ -22,6 +22,7 @@ namespace Microsoft.VisualStudio.ProjectSystem.VS.Query; [QueryActionProvider(ProjectModelActionNames.SetLaunchProfilePropertyValue, typeof(SetLaunchProfilePropertyValue))] [QueryDataProviderZone(ProjectModelZones.Cps)] [Export(typeof(IQueryActionProvider))] +[AppliesTo(ProjectCapability.DotNet)] internal sealed class LaunchProfileActionProvider : IQueryActionProvider { public IQueryActionExecutor CreateQueryActionDataTransformer(ExecutableStep executableStep) diff --git a/src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/Query/PropertyPages/ProjectActionProvider.cs b/src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/Query/PropertyPages/ProjectActionProvider.cs index e1204fba53..20c1dc2bee 100644 --- a/src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/Query/PropertyPages/ProjectActionProvider.cs +++ b/src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/Query/PropertyPages/ProjectActionProvider.cs @@ -26,6 +26,7 @@ namespace Microsoft.VisualStudio.ProjectSystem.VS.Query; [QueryActionProvider(ProjectModelActionNames.DuplicateLaunchProfile, typeof(DuplicateLaunchProfile))] [QueryDataProviderZone(ProjectModelZones.Cps)] [Export(typeof(IQueryActionProvider))] +[AppliesTo(ProjectCapability.DotNet)] internal sealed class ProjectActionProvider : IQueryActionProvider { public IQueryActionExecutor CreateQueryActionDataTransformer(ExecutableStep executableStep)