1 write to Project
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\ProjectFile\CommandLineArgumentReader.cs (1)
21
Project
= project;
70 references to Project
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (70)
MSBuild\CSharp\CSharpCommandLineArgumentReader.cs (24)
36
AddIfNotNullOrWhiteSpace("appconfig",
Project
.ReadPropertyString(PropertyNames.AppConfigForCompiler));
37
AddIfNotNullOrWhiteSpace("baseaddress",
Project
.ReadPropertyString(PropertyNames.BaseAddress));
38
AddIfTrue("checked",
Project
.ReadPropertyBool(PropertyNames.CheckForOverflowUnderflow));
39
AddIfNotNullOrWhiteSpace("define",
Project
.ReadPropertyString(PropertyNames.DefineConstants));
40
AddIfNotNullOrWhiteSpace("filealign",
Project
.ReadPropertyString(PropertyNames.FileAlignment));
41
AddIfNotNullOrWhiteSpace("doc",
Project
.ReadItemsAsString(ItemNames.DocFileItem));
42
AddIfTrue("fullpaths",
Project
.ReadPropertyBool(PropertyNames.GenerateFullPaths));
43
AddIfTrue("highentropyva",
Project
.ReadPropertyBool(PropertyNames.HighEntropyVA));
44
AddIfNotNullOrWhiteSpace("langversion",
Project
.ReadPropertyString(PropertyNames.LangVersion));
45
AddIfNotNullOrWhiteSpace("main",
Project
.ReadPropertyString(PropertyNames.StartupObject));
46
AddIfNotNullOrWhiteSpace("moduleassemblyname",
Project
.ReadPropertyString(PropertyNames.ModuleAssemblyName));
47
AddIfTrue("nostdlib",
Project
.ReadPropertyBool(PropertyNames.NoCompilerStandardLib));
48
AddIfNotNullOrWhiteSpace("nowarn",
Project
.ReadPropertyString(PropertyNames.NoWarn));
49
AddIfTrue("optimize",
Project
.ReadPropertyBool(PropertyNames.Optimize));
50
AddIfNotNullOrWhiteSpace("out",
Project
.ReadItemsAsString(PropertyNames.IntermediateAssembly));
51
AddIfNotNullOrWhiteSpace("pdb",
Project
.ReadPropertyString(PropertyNames.PdbFile));
52
AddIfNotNullOrWhiteSpace("ruleset",
Project
.ReadPropertyString(PropertyNames.ResolvedCodeAnalysisRuleSet));
53
AddIfNotNullOrWhiteSpace("subsystemversion",
Project
.ReadPropertyString(PropertyNames.SubsystemVersion));
54
AddIfNotNullOrWhiteSpace("target",
Project
.ReadPropertyString(PropertyNames.OutputType));
55
AddIfTrue("unsafe",
Project
.ReadPropertyBool(PropertyNames.AllowUnsafeBlocks));
56
Add("warn",
Project
.ReadPropertyInt(PropertyNames.WarningLevel));
57
AddIfTrue("warnaserror",
Project
.ReadPropertyBool(PropertyNames.TreatWarningsAsErrors));
58
AddIfNotNullOrWhiteSpace("warnaserror+",
Project
.ReadPropertyString(PropertyNames.WarningsAsErrors));
59
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)
41
AddIfNotNullOrWhiteSpace("baseaddress",
Project
.ReadPropertyString(PropertyNames.BaseAddress));
42
AddIfNotNullOrWhiteSpace("define",
Project
.ReadPropertyString(PropertyNames.FinalDefineConstants));
43
AddIfNotNullOrWhiteSpace("filealign",
Project
.ReadPropertyString(PropertyNames.FileAlignment));
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("netcf",
Project
.ReadPropertyBool(PropertyNames.TargetCompactFramework));
49
AddIfTrue("nostdlib",
Project
.ReadPropertyBool(PropertyNames.NoCompilerStandardLib));
50
AddIfNotNullOrWhiteSpace("nowarn",
Project
.ReadPropertyString(PropertyNames.NoWarn));
51
AddIfTrue("nowarn",
Project
.ReadPropertyBool(PropertyNames._NoWarnings));
52
AddIfTrue("optimize",
Project
.ReadPropertyBool(PropertyNames.Optimize));
53
AddIfNotNullOrWhiteSpace("out",
Project
.ReadItemsAsString(PropertyNames.IntermediateAssembly));
54
AddIfTrue("removeintchecks",
Project
.ReadPropertyBool(PropertyNames.RemoveIntegerChecks));
55
AddIfNotNullOrWhiteSpace("rootnamespace",
Project
.ReadPropertyString(PropertyNames.RootNamespace));
56
AddIfNotNullOrWhiteSpace("ruleset",
Project
.ReadPropertyString(PropertyNames.ResolvedCodeAnalysisRuleSet));
57
AddIfNotNullOrWhiteSpace("sdkpath",
Project
.ReadPropertyString(PropertyNames.FrameworkPathOverride));
58
AddIfNotNullOrWhiteSpace("subsystemversion",
Project
.ReadPropertyString(PropertyNames.SubsystemVersion));
59
AddIfNotNullOrWhiteSpace("target",
Project
.ReadPropertyString(PropertyNames.OutputType));
60
AddIfTrue("warnaserror",
Project
.ReadPropertyBool(PropertyNames.TreatWarningsAsErrors));
61
AddIfNotNullOrWhiteSpace("warnaserror+",
Project
.ReadPropertyString(PropertyNames.WarningsAsErrors));
62
AddIfNotNullOrWhiteSpace("warnaserror-",
Project
.ReadPropertyString(PropertyNames.WarningsNotAsErrors));
67
var documentationFile =
Project
.ReadPropertyString(PropertyNames.DocFileItem);
68
var generateDocumentation =
Project
.ReadPropertyBool(PropertyNames.GenerateDocumentation);
87
var optionCompare =
Project
.ReadPropertyString(PropertyNames.OptionCompare);
98
AddIfFalse("optionexplicit-",
Project
.ReadPropertyBool(PropertyNames.OptionExplicit));
100
AddIfTrue("optioninfer",
Project
.ReadPropertyBool(PropertyNames.OptionInfer));
101
AddWithPlusOrMinus("optionstrict",
Project
.ReadPropertyBool(PropertyNames.OptionStrict));
102
AddIfNotNullOrWhiteSpace("optionstrict",
Project
.ReadPropertyString(PropertyNames.OptionStrictType));
107
var vbRuntime =
Project
.ReadPropertyString(PropertyNames.VbRuntime);