Skip to content

Commit d959084

Browse files
committed
Pass generators to CSC during component discovery
1 parent f2b72b0 commit d959084

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Microsoft.NET.Sdk.Razor.Component.targets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ Copyright (c) .NET Foundation. All rights reserved.
187187
AddModules="@(AddModules)"
188188
AdditionalFiles="@(AdditionalFiles)"
189189
AllowUnsafeBlocks="$(AllowUnsafeBlocks)"
190+
Analyzers="@(Analyzer)"
190191
ApplicationConfiguration="$(AppConfigForCompiler)"
191192
BaseAddress="$(BaseAddress)"
192193
CheckForOverflowUnderflow="$(CheckForOverflowUnderflow)"
@@ -231,6 +232,7 @@ Copyright (c) .NET Foundation. All rights reserved.
231232
ResponseFiles="$(CompilerResponseFile)"
232233
RuntimeMetadataVersion="$(RuntimeMetadataVersion)"
233234
SharedCompilationId="$(SharedCompilationId)"
235+
SkipAnalyzers="true"
234236
SkipCompilerExecution="$(SkipCompilerExecution)"
235237
Sources="@(_RazorComponentDeclaration);@(Compile)"
236238
SubsystemVersion="$(SubsystemVersion)"

0 commit comments

Comments
 (0)