2 writes to DefineConstants
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (2)
CscTests.cs (1)
184
csc.
DefineConstants
= s;
VbcTests.cs (1)
184
vbc.
DefineConstants
= s;
8 references to DefineConstants
Microsoft.Build.Tasks.CodeAnalysis (8)
src\Compilers\Core\MSBuildTask\Csc.cs (3)
215
commandLine.AppendSwitchUnquotedIfNotNull("/define:", GetDefineConstantsSwitch(
DefineConstants
, Log));
556
CheckHostObjectSupport(param = nameof(
DefineConstants
), cscHostObject.SetDefineConstants(GetDefineConstantsSwitch(
DefineConstants
, Log)));
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (2)
147
set { _store[nameof(
DefineConstants
)] = value; }
148
get { return (string?)_store[nameof(
DefineConstants
)]; }
src\Compilers\Core\MSBuildTask\Vbc.cs (3)
493
commandLine.AppendSwitchUnquotedIfNotNull("/define:", Vbc.GetDefineConstantsSwitch(this.
DefineConstants
));
836
CheckHostObjectSupport(param = nameof(
DefineConstants
), vbcHostObject.SetDefineConstants(
DefineConstants
));