1 write to Project
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\ProjectFile\CommandLineArgumentReader.cs (1)
21
Project
= project;
70 references to Project
Microsoft.CodeAnalysis.Workspaces.MSBuild (70)
MSBuild\CSharp\CSharpCommandLineArgumentReader.cs (24)
37
AddIfNotNullOrWhiteSpace("appconfig",
Project
.ReadPropertyString(PropertyNames.AppConfigForCompiler));
38
AddIfNotNullOrWhiteSpace("baseaddress",
Project
.ReadPropertyString(PropertyNames.BaseAddress));
39
AddIfTrue("checked",
Project
.ReadPropertyBool(PropertyNames.CheckForOverflowUnderflow));
40
AddIfNotNullOrWhiteSpace("define",
Project
.ReadPropertyString(PropertyNames.DefineConstants));
41
AddIfNotNullOrWhiteSpace("filealign",
Project
.ReadPropertyString(PropertyNames.FileAlignment));
42
AddIfNotNullOrWhiteSpace("doc",
Project
.ReadItemsAsString(ItemNames.DocFileItem));
43
AddIfTrue("fullpaths",
Project
.ReadPropertyBool(PropertyNames.GenerateFullPaths));
44
AddIfTrue("highentropyva",
Project
.ReadPropertyBool(PropertyNames.HighEntropyVA));
45
AddIfNotNullOrWhiteSpace("langversion",
Project
.ReadPropertyString(PropertyNames.LangVersion));
46
AddIfNotNullOrWhiteSpace("main",
Project
.ReadPropertyString(PropertyNames.StartupObject));
47
AddIfNotNullOrWhiteSpace("moduleassemblyname",
Project
.ReadPropertyString(PropertyNames.ModuleAssemblyName));
48
AddIfTrue("nostdlib",
Project
.ReadPropertyBool(PropertyNames.NoCompilerStandardLib));
49
AddIfNotNullOrWhiteSpace("nowarn",
Project
.ReadPropertyString(PropertyNames.NoWarn));
50
AddIfTrue("optimize",
Project
.ReadPropertyBool(PropertyNames.Optimize));
51
AddIfNotNullOrWhiteSpace("out",
Project
.ReadItemsAsString(PropertyNames.IntermediateAssembly));
52
AddIfNotNullOrWhiteSpace("pdb",
Project
.ReadPropertyString(PropertyNames.PdbFile));
53
AddIfNotNullOrWhiteSpace("ruleset",
Project
.ReadPropertyString(PropertyNames.ResolvedCodeAnalysisRuleSet));
54
AddIfNotNullOrWhiteSpace("subsystemversion",
Project
.ReadPropertyString(PropertyNames.SubsystemVersion));
55
AddIfNotNullOrWhiteSpace("target",
Project
.ReadPropertyString(PropertyNames.OutputType));
56
AddIfTrue("unsafe",
Project
.ReadPropertyBool(PropertyNames.AllowUnsafeBlocks));
57
Add("warn",
Project
.ReadPropertyInt(PropertyNames.WarningLevel));
58
AddIfTrue("warnaserror",
Project
.ReadPropertyBool(PropertyNames.TreatWarningsAsErrors));
59
AddIfNotNullOrWhiteSpace("warnaserror+",
Project
.ReadPropertyString(PropertyNames.WarningsAsErrors));
60
AddIfNotNullOrWhiteSpace("warnaserror-",
Project
.ReadPropertyString(PropertyNames.WarningsNotAsErrors));
MSBuild\ProjectFile\CommandLineArgumentReader.cs (16)
122
var baseDirectory = PathUtilities.GetDirectoryName(
Project
.FullPath);
129
var additionalFiles =
Project
.GetAdditionalFiles();
141
var analyzers =
Project
.GetAnalyzers();
153
var codePage =
Project
.ReadPropertyInt(PropertyNames.CodePage);
168
var emitDebugInfo =
Project
.ReadPropertyBool(PropertyNames.DebugSymbols);
171
var debugType =
Project
.ReadPropertyString(PropertyNames.DebugType);
181
var delaySign =
Project
.ReadPropertyString(PropertyNames.DelaySign);
190
var errorReport =
Project
.ReadPropertyString(PropertyNames.ErrorReport);
199
var features =
Project
.ReadPropertyString(PropertyNames.Features);
211
var imports =
Project
.GetTaskItems(ItemNames.Import);
228
var platform =
Project
.ReadPropertyString(PropertyNames.PlatformTarget);
229
var prefer32bit =
Project
.ReadPropertyBool(PropertyNames.Prefer32Bit);
241
var references =
Project
.GetMetadataReferences();
276
var signAssembly =
Project
.ReadPropertyBool(PropertyNames.SignAssembly);
279
var keyFile =
Project
.ReadPropertyString(PropertyNames.KeyOriginatorFile);
285
var keyContainer =
Project
.ReadPropertyString(PropertyNames.KeyContainerName);
MSBuild\VisualBasic\VisualBasicCommandLineArgumentReader.cs (30)
42
AddIfNotNullOrWhiteSpace("baseaddress",
Project
.ReadPropertyString(PropertyNames.BaseAddress));
43
AddIfNotNullOrWhiteSpace("define",
Project
.ReadPropertyString(PropertyNames.FinalDefineConstants));
44
AddIfNotNullOrWhiteSpace("filealign",
Project
.ReadPropertyString(PropertyNames.FileAlignment));
45
AddIfTrue("highentropyva",
Project
.ReadPropertyBool(PropertyNames.HighEntropyVA));
46
AddIfNotNullOrWhiteSpace("langversion",
Project
.ReadPropertyString(PropertyNames.LangVersion));
47
AddIfNotNullOrWhiteSpace("main",
Project
.ReadPropertyString(PropertyNames.StartupObject));
48
AddIfNotNullOrWhiteSpace("moduleassemblyname",
Project
.ReadPropertyString(PropertyNames.ModuleAssemblyName));
49
AddIfTrue("netcf",
Project
.ReadPropertyBool(PropertyNames.TargetCompactFramework));
50
AddIfTrue("nostdlib",
Project
.ReadPropertyBool(PropertyNames.NoCompilerStandardLib));
51
AddIfNotNullOrWhiteSpace("nowarn",
Project
.ReadPropertyString(PropertyNames.NoWarn));
52
AddIfTrue("nowarn",
Project
.ReadPropertyBool(PropertyNames._NoWarnings));
53
AddIfTrue("optimize",
Project
.ReadPropertyBool(PropertyNames.Optimize));
54
AddIfNotNullOrWhiteSpace("out",
Project
.ReadItemsAsString(PropertyNames.IntermediateAssembly));
55
AddIfTrue("removeintchecks",
Project
.ReadPropertyBool(PropertyNames.RemoveIntegerChecks));
56
AddIfNotNullOrWhiteSpace("rootnamespace",
Project
.ReadPropertyString(PropertyNames.RootNamespace));
57
AddIfNotNullOrWhiteSpace("ruleset",
Project
.ReadPropertyString(PropertyNames.ResolvedCodeAnalysisRuleSet));
58
AddIfNotNullOrWhiteSpace("sdkpath",
Project
.ReadPropertyString(PropertyNames.FrameworkPathOverride));
59
AddIfNotNullOrWhiteSpace("subsystemversion",
Project
.ReadPropertyString(PropertyNames.SubsystemVersion));
60
AddIfNotNullOrWhiteSpace("target",
Project
.ReadPropertyString(PropertyNames.OutputType));
61
AddIfTrue("warnaserror",
Project
.ReadPropertyBool(PropertyNames.TreatWarningsAsErrors));
62
AddIfNotNullOrWhiteSpace("warnaserror+",
Project
.ReadPropertyString(PropertyNames.WarningsAsErrors));
63
AddIfNotNullOrWhiteSpace("warnaserror-",
Project
.ReadPropertyString(PropertyNames.WarningsNotAsErrors));
68
var documentationFile =
Project
.ReadPropertyString(PropertyNames.DocFileItem);
69
var generateDocumentation =
Project
.ReadPropertyBool(PropertyNames.GenerateDocumentation);
88
var optionCompare =
Project
.ReadPropertyString(PropertyNames.OptionCompare);
99
AddIfFalse("optionexplicit-",
Project
.ReadPropertyBool(PropertyNames.OptionExplicit));
101
AddIfTrue("optioninfer",
Project
.ReadPropertyBool(PropertyNames.OptionInfer));
102
AddWithPlusOrMinus("optionstrict",
Project
.ReadPropertyBool(PropertyNames.OptionStrict));
103
AddIfNotNullOrWhiteSpace("optionstrict",
Project
.ReadPropertyString(PropertyNames.OptionStrictType));
108
var vbRuntime =
Project
.ReadPropertyString(PropertyNames.VbRuntime);