Skip to content

Commit 11751a6

Browse files
authored
Don't run Analyzers for the generated project + Roslyn workaround (#1917)
* disable analyzers for the generated project * don't emit debug symbols for 32 bit benchmarks (Roslyn bug workaround)
1 parent 05bb3db commit 11751a6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/BenchmarkDotNet/Templates/CsProj.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111
<OutputType>Exe</OutputType>
1212
<OutputPath>bin\$CONFIGURATIONNAME$</OutputPath>
1313
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
14-
<DebugType>pdbonly</DebugType>
15-
<DebugSymbols>true</DebugSymbols>
14+
<!-- nice to have for EtwProfiler, but not mandatory. On x86 and ARM disabled due to bug in Roslyn. -->
15+
<DebugType Condition=" '$(PlatformTarget)' != 'x86' And '$(PlatformTarget)' != 'ARM' ">pdbonly</DebugType>
16+
<DebugSymbols Condition=" '$(PlatformTarget)' != 'x86' And '$(PlatformTarget)' != 'ARM' ">true</DebugSymbols>
1617
<UseSharedCompilation>false</UseSharedCompilation>
1718
<CodeAnalysisRuleSet></CodeAnalysisRuleSet>
19+
<RunAnalyzers>false</RunAnalyzers>
1820
<Deterministic>true</Deterministic>
1921
<!-- needed for custom build configurations (only "Release" builds are optimized by default) -->
2022
<Optimize Condition=" '$(Configuration)' != 'Debug' ">true</Optimize>

0 commit comments

Comments
 (0)