diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.Analyzers.targets b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.Analyzers.targets index 00ba8b71b046..28e3f1d411cd 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.Analyzers.targets +++ b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.Analyzers.targets @@ -115,9 +115,9 @@ Copyright (c) .NET Foundation. All rights reserved. Condition="$(EnableNETAnalyzers)" /> + Condition="'$(Language)' == 'C#'" /> + Condition="'$(Language)' == 'VB'" />