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