4 writes to TargetType
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (4)
CscTests.cs (2)
150
csc.
TargetType
= "library";
159
csc.
TargetType
= "bad";
VbcTests.cs (2)
148
vbc.
TargetType
= "library";
157
vbc.
TargetType
= "bad";
13 references to TargetType
Microsoft.Build.Tasks.CodeAnalysis (13)
Csc.cs (3)
517
CheckHostObjectSupport(param = nameof(MainEntryPoint), cscHostObject.SetMainEntryPoint(
TargetType
, MainEntryPoint));
561
CheckHostObjectSupport(param = nameof(
TargetType
), cscHostObject.SetTargetType(
TargetType
));
ManagedCompiler.cs (7)
384
_store[nameof(
TargetType
)] = value != null
388
get { return (string?)_store[nameof(
TargetType
)]; }
880
if (string.Compare(
TargetType
, "library", StringComparison.OrdinalIgnoreCase) == 0)
884
else if (string.Compare(
TargetType
, "module", StringComparison.OrdinalIgnoreCase) == 0)
927
commandLine.AppendSwitchIfNotNull("/target:",
TargetType
);
1219
if (!string.Equals(
TargetType
, "library", StringComparison.OrdinalIgnoreCase)
1220
&& !string.Equals(
TargetType
, "module", StringComparison.OrdinalIgnoreCase))
Vbc.cs (3)
834
CheckHostObjectSupport(param = nameof(BaseAddress), vbcHostObject.SetBaseAddress(
TargetType
, GetBaseAddressInHex()));
885
CheckHostObjectSupport(param = nameof(
TargetType
), vbcHostObject.SetTargetType(
TargetType
));