2 writes to LangVersion
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (2)
CscTests.cs (1)
111
csc.
LangVersion
= "iso-1";
VbcTests.cs (1)
108
vbc.
LangVersion
= "15.3";
8 references to LangVersion
Microsoft.Build.Tasks.CodeAnalysis (8)
ManagedCompiler.cs (3)
480
set { _store[nameof(
LangVersion
)] = value; }
481
get { return (string?)_store[nameof(
LangVersion
)]; }
921
commandLine.AppendSwitchIfNotNull("/langversion:",
LangVersion
);
Vbc.cs (5)
926
if (vbcHostObject is IVbcHostObject3 && !DeferToICompilerOptionsHostObject(
LangVersion
, vbcHostObject))
929
CheckHostObjectSupport(param = nameof(
LangVersion
), vbcHostObject3.SetLanguageVersion(
LangVersion
));
931
else if (!String.IsNullOrEmpty(
LangVersion
) && !UsedCommandLineTool)
933
CheckHostObjectSupport(param = nameof(
LangVersion
), resultFromHostObjectSetOperation: false);