Skip to content

Commit 7e19b0f

Browse files
authored
Unset CompilerType from Csc (#78483)
* Unset CompilerType from Csc * Remove CompilerType logic
1 parent f95c92c commit 7e19b0f

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/Compilers/Core/MSBuildTask/ManagedCompiler.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,10 +487,11 @@ public bool ReportIVTs
487487
get { return _store.GetOrDefault(nameof(ReportIVTs), false); }
488488
}
489489

490+
// Keeping this for a while to avoid failures if someone uses sdk targets that still set this.
490491
public string? CompilerType
491492
{
492-
set { _store[nameof(CompilerType)] = value; }
493-
get { return (string?)_store[nameof(CompilerType)]; }
493+
set { }
494+
get { return null; }
494495
}
495496

496497
#endregion

src/Compilers/Core/MSBuildTask/Microsoft.CSharp.Core.targets

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
ChecksumAlgorithm="$(ChecksumAlgorithm)"
9595
CodeAnalysisRuleSet="$(ResolvedCodeAnalysisRuleSet)"
9696
CodePage="$(CodePage)"
97-
CompilerType="$(RoslynCompilerType)"
9897
DebugType="$(DebugType)"
9998
DefineConstants="$(DefineConstants)"
10099
DelaySign="$(DelaySign)"

src/Compilers/Core/MSBuildTask/Microsoft.VisualBasic.Core.targets

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
ChecksumAlgorithm="$(ChecksumAlgorithm)"
5252
CodeAnalysisRuleSet="$(ResolvedCodeAnalysisRuleSet)"
5353
CodePage="$(CodePage)"
54-
CompilerType="$(RoslynCompilerType)"
5554
DebugType="$(DebugType)"
5655
DefineConstants="$(FinalDefineConstants)"
5756
DelaySign="$(DelaySign)"

0 commit comments

Comments
 (0)