90 references to PropertyNames
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Api\HotReloadMSBuildWorkspace.ProjectFileInfoProvider.cs (1)
45
getBuildProjects(projectPath).instances.SelectAsArray(static instance => instance.GetPropertyValue(
PropertyNames
.TargetPath)));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (89)
Build\ProjectBuildManager.cs (15)
31
{
PropertyNames
.DesignTimeBuild, bool.TrueString },
35
{
PropertyNames
.NonExistentFile, "__NonExistentSubDir__\\__NonExistentFile__" },
42
{
PropertyNames
.BuildProjectReferences, bool.FalseString },
43
{
PropertyNames
.BuildingProject, bool.FalseString },
46
{
PropertyNames
.ProvideCommandLineArgs, bool.TrueString },
49
{
PropertyNames
.SkipCompilerExecution, bool.TrueString },
51
{
PropertyNames
.ContinueOnError, PropertyValues.ErrorAndContinue },
57
{
PropertyNames
.ShouldUnsetParentConfigurationAndPlatform, bool.FalseString }
259
return project?.GetPropertyValue(
PropertyNames
.TargetPath);
286
var targetFrameworkValue = project.GetPropertyValue(
PropertyNames
.TargetFramework);
287
var targetFrameworksValue = project.GetPropertyValue(
PropertyNames
.TargetFrameworks);
300
if (!project.GlobalProperties.TryGetValue(
PropertyNames
.TargetFramework, out var initialGlobalTargetFrameworkValue))
306
project.SetGlobalProperty(
PropertyNames
.TargetFramework, targetFramework);
315
project.RemoveGlobalProperty(
PropertyNames
.TargetFramework);
319
project.SetGlobalProperty(
PropertyNames
.TargetFramework, initialGlobalTargetFrameworkValue);
MSBuild\CSharp\CSharpCommandLineArgumentReader.cs (23)
33
AddIfNotNullOrWhiteSpace("appconfig", Project.ReadPropertyString(
PropertyNames
.AppConfigForCompiler));
34
AddIfNotNullOrWhiteSpace("baseaddress", Project.ReadPropertyString(
PropertyNames
.BaseAddress));
35
AddIfTrue("checked", Project.ReadPropertyBool(
PropertyNames
.CheckForOverflowUnderflow));
36
AddIfNotNullOrWhiteSpace("define", Project.ReadPropertyString(
PropertyNames
.DefineConstants));
37
AddIfNotNullOrWhiteSpace("filealign", Project.ReadPropertyString(
PropertyNames
.FileAlignment));
39
AddIfTrue("fullpaths", Project.ReadPropertyBool(
PropertyNames
.GenerateFullPaths));
40
AddIfTrue("highentropyva", Project.ReadPropertyBool(
PropertyNames
.HighEntropyVA));
41
AddIfNotNullOrWhiteSpace("langversion", Project.ReadPropertyString(
PropertyNames
.LangVersion));
42
AddIfNotNullOrWhiteSpace("main", Project.ReadPropertyString(
PropertyNames
.StartupObject));
43
AddIfNotNullOrWhiteSpace("moduleassemblyname", Project.ReadPropertyString(
PropertyNames
.ModuleAssemblyName));
44
AddIfTrue("nostdlib", Project.ReadPropertyBool(
PropertyNames
.NoCompilerStandardLib));
45
AddIfNotNullOrWhiteSpace("nowarn", Project.ReadPropertyString(
PropertyNames
.NoWarn));
46
AddIfTrue("optimize", Project.ReadPropertyBool(
PropertyNames
.Optimize));
47
AddIfNotNullOrWhiteSpace("out", Project.ReadItemsAsString(
PropertyNames
.IntermediateAssembly));
48
AddIfNotNullOrWhiteSpace("pdb", Project.ReadPropertyString(
PropertyNames
.PdbFile));
49
AddIfNotNullOrWhiteSpace("ruleset", Project.ReadPropertyString(
PropertyNames
.ResolvedCodeAnalysisRuleSet));
50
AddIfNotNullOrWhiteSpace("subsystemversion", Project.ReadPropertyString(
PropertyNames
.SubsystemVersion));
51
AddIfNotNullOrWhiteSpace("target", Project.ReadPropertyString(
PropertyNames
.OutputType));
52
AddIfTrue("unsafe", Project.ReadPropertyBool(
PropertyNames
.AllowUnsafeBlocks));
53
Add("warn", Project.ReadPropertyInt(
PropertyNames
.WarningLevel));
54
AddIfTrue("warnaserror", Project.ReadPropertyBool(
PropertyNames
.TreatWarningsAsErrors));
55
AddIfNotNullOrWhiteSpace("warnaserror+", Project.ReadPropertyString(
PropertyNames
.WarningsAsErrors));
56
AddIfNotNullOrWhiteSpace("warnaserror-", Project.ReadPropertyString(
PropertyNames
.WarningsNotAsErrors));
MSBuild\ProjectFile\CommandLineArgumentReader.cs (10)
143
var emitDebugInfo = Project.ReadPropertyBool(
PropertyNames
.DebugSymbols);
146
var debugType = Project.ReadPropertyString(
PropertyNames
.DebugType);
156
var delaySign = Project.ReadPropertyString(
PropertyNames
.DelaySign);
165
var errorReport = Project.ReadPropertyString(
PropertyNames
.ErrorReport);
174
var features = Project.ReadPropertyString(
PropertyNames
.Features);
203
var platform = Project.ReadPropertyString(
PropertyNames
.PlatformTarget);
204
var prefer32bit = Project.ReadPropertyBool(
PropertyNames
.Prefer32Bit);
216
var signAssembly = Project.ReadPropertyBool(
PropertyNames
.SignAssembly);
219
var keyFile = Project.ReadPropertyString(
PropertyNames
.KeyOriginatorFile);
225
var keyContainer = Project.ReadPropertyString(
PropertyNames
.KeyContainerName);
MSBuild\ProjectFile\Extensions.cs (1)
108
=> executedProject.ReadPropertyInt(
PropertyNames
.CodePage) is >= 0 and var codePage ? codePage : 0;
MSBuild\ProjectFile\ProjectInstanceReader.cs (10)
69
var outputFilePath = _projectInstance.ReadPropertyString(
PropertyNames
.TargetPath);
75
var outputRefFilePath = _projectInstance.ReadPropertyString(
PropertyNames
.TargetRefPath);
81
var generatedFilesOutputDirectory = _projectInstance.ReadPropertyString(
PropertyNames
.CompilerGeneratedFilesOutputPath);
92
var projectAssetsFilePath = _projectInstance.ReadPropertyString(
PropertyNames
.ProjectAssetsFile);
99
var defaultNamespace = _projectInstance.ReadPropertyString(
PropertyNames
.RootNamespace) ?? string.Empty;
101
var targetFramework = _projectInstance.ReadPropertyString(
PropertyNames
.TargetFramework);
107
var targetFrameworkIdentifier = _projectInstance.ReadPropertyString(
PropertyNames
.TargetFrameworkIdentifier);
109
var targetFrameworkVersion = _projectInstance.ReadPropertyString(
PropertyNames
.TargetFrameworkVersion);
130
var checksumAlgorithm = _projectInstance.ReadPropertyString(
PropertyNames
.ChecksumAlgorithm);
134
checksumAlgorithm = _projectInstance.ReadPropertyString(
PropertyNames
.PdbChecksumAlgorithm);
MSBuild\VisualBasic\VisualBasicCommandLineArgumentReader.cs (30)
38
AddIfNotNullOrWhiteSpace("baseaddress", Project.ReadPropertyString(
PropertyNames
.BaseAddress));
39
AddIfNotNullOrWhiteSpace("define", Project.ReadPropertyString(
PropertyNames
.FinalDefineConstants));
40
AddIfNotNullOrWhiteSpace("filealign", Project.ReadPropertyString(
PropertyNames
.FileAlignment));
41
AddIfTrue("highentropyva", Project.ReadPropertyBool(
PropertyNames
.HighEntropyVA));
42
AddIfNotNullOrWhiteSpace("langversion", Project.ReadPropertyString(
PropertyNames
.LangVersion));
43
AddIfNotNullOrWhiteSpace("main", Project.ReadPropertyString(
PropertyNames
.StartupObject));
44
AddIfNotNullOrWhiteSpace("moduleassemblyname", Project.ReadPropertyString(
PropertyNames
.ModuleAssemblyName));
45
AddIfTrue("netcf", Project.ReadPropertyBool(
PropertyNames
.TargetCompactFramework));
46
AddIfTrue("nostdlib", Project.ReadPropertyBool(
PropertyNames
.NoCompilerStandardLib));
47
AddIfNotNullOrWhiteSpace("nowarn", Project.ReadPropertyString(
PropertyNames
.NoWarn));
48
AddIfTrue("nowarn", Project.ReadPropertyBool(
PropertyNames
._NoWarnings));
49
AddIfTrue("optimize", Project.ReadPropertyBool(
PropertyNames
.Optimize));
50
AddIfNotNullOrWhiteSpace("out", Project.ReadItemsAsString(
PropertyNames
.IntermediateAssembly));
51
AddIfTrue("removeintchecks", Project.ReadPropertyBool(
PropertyNames
.RemoveIntegerChecks));
52
AddIfNotNullOrWhiteSpace("rootnamespace", Project.ReadPropertyString(
PropertyNames
.RootNamespace));
53
AddIfNotNullOrWhiteSpace("ruleset", Project.ReadPropertyString(
PropertyNames
.ResolvedCodeAnalysisRuleSet));
54
AddIfNotNullOrWhiteSpace("sdkpath", Project.ReadPropertyString(
PropertyNames
.FrameworkPathOverride));
55
AddIfNotNullOrWhiteSpace("subsystemversion", Project.ReadPropertyString(
PropertyNames
.SubsystemVersion));
56
AddIfNotNullOrWhiteSpace("target", Project.ReadPropertyString(
PropertyNames
.OutputType));
57
AddIfTrue("warnaserror", Project.ReadPropertyBool(
PropertyNames
.TreatWarningsAsErrors));
58
AddIfNotNullOrWhiteSpace("warnaserror+", Project.ReadPropertyString(
PropertyNames
.WarningsAsErrors));
59
AddIfNotNullOrWhiteSpace("warnaserror-", Project.ReadPropertyString(
PropertyNames
.WarningsNotAsErrors));
64
var documentationFile = Project.ReadPropertyString(
PropertyNames
.DocFileItem);
65
var generateDocumentation = Project.ReadPropertyBool(
PropertyNames
.GenerateDocumentation);
84
var optionCompare = Project.ReadPropertyString(
PropertyNames
.OptionCompare);
95
AddIfFalse("optionexplicit-", Project.ReadPropertyBool(
PropertyNames
.OptionExplicit));
97
AddIfTrue("optioninfer", Project.ReadPropertyBool(
PropertyNames
.OptionInfer));
98
AddWithPlusOrMinus("optionstrict", Project.ReadPropertyBool(
PropertyNames
.OptionStrict));
99
AddIfNotNullOrWhiteSpace("optionstrict", Project.ReadPropertyString(
PropertyNames
.OptionStrictType));
104
var vbRuntime = Project.ReadPropertyString(
PropertyNames
.VbRuntime);