Skip to content

Commit fda7e73

Browse files
authored
Don't use IBC on .NET Core (#41593)
This changes our build so that we don't apply IBC optimization data to our .NET Core binaries. This data is only applicable for .NET Desktop scenarios.
1 parent 98cb66f commit fda7e73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Compilers/CSharp/Portable/Microsoft.CodeAnalysis.CSharp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<TargetFrameworks>netcoreapp3.1;netstandard2.0</TargetFrameworks>
99
<CodeAnalysisRuleSet>..\CSharpCodeAnalysisRules.ruleset</CodeAnalysisRuleSet>
1010
<GenerateMicrosoftCodeAnalysisCommitHashAttribute>true</GenerateMicrosoftCodeAnalysisCommitHashAttribute>
11-
<ApplyNgenOptimization>partial</ApplyNgenOptimization>
11+
<ApplyNgenOptimization Condition="'$(TargetFramework)' == 'netstandard2.0'">partial</ApplyNgenOptimization>
1212

1313
<!-- NuGet -->
1414
<IsPackable>true</IsPackable>

src/Compilers/Core/Portable/Microsoft.CodeAnalysis.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<DefineConstants>$(DefineConstants);COMPILERCORE</DefineConstants>
1010
<CodeAnalysisRuleSet>..\CodeAnalysisRules.ruleset</CodeAnalysisRuleSet>
1111
<NoStdLib>true</NoStdLib>
12-
<ApplyNgenOptimization>partial</ApplyNgenOptimization>
12+
<ApplyNgenOptimization Condition="'$(TargetFramework)' == 'netstandard2.0'">partial</ApplyNgenOptimization>
1313
<GeneratePerformanceSensitiveAttribute>true</GeneratePerformanceSensitiveAttribute>
1414

1515
<!-- NuGet -->

0 commit comments

Comments
 (0)