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 }
228
return project?.GetPropertyValue(
PropertyNames
.TargetPath);
295
var targetFrameworkValue = project.GetPropertyValue(
PropertyNames
.TargetFramework);
296
var targetFrameworksValue = project.GetPropertyValue(
PropertyNames
.TargetFrameworks);
309
if (!project.GlobalProperties.TryGetValue(
PropertyNames
.TargetFramework, out var initialGlobalTargetFrameworkValue))
315
project.SetGlobalProperty(
PropertyNames
.TargetFramework, targetFramework);
324
project.RemoveGlobalProperty(
PropertyNames
.TargetFramework);
328
project.SetGlobalProperty(
PropertyNames
.TargetFramework, initialGlobalTargetFrameworkValue);
MSBuild\CSharp\CSharpCommandLineArgumentReader.cs (23)
35
AddIfNotNullOrWhiteSpace("appconfig", Project.ReadPropertyString(
PropertyNames
.AppConfigForCompiler));
36
AddIfNotNullOrWhiteSpace("baseaddress", Project.ReadPropertyString(
PropertyNames
.BaseAddress));
37
AddIfTrue("checked", Project.ReadPropertyBool(
PropertyNames
.CheckForOverflowUnderflow));
38
AddIfNotNullOrWhiteSpace("define", Project.ReadPropertyString(
PropertyNames
.DefineConstants));
39
AddIfNotNullOrWhiteSpace("filealign", Project.ReadPropertyString(
PropertyNames
.FileAlignment));
41
AddIfTrue("fullpaths", Project.ReadPropertyBool(
PropertyNames
.GenerateFullPaths));
42
AddIfTrue("highentropyva", Project.ReadPropertyBool(
PropertyNames
.HighEntropyVA));
43
AddIfNotNullOrWhiteSpace("langversion", Project.ReadPropertyString(
PropertyNames
.LangVersion));
44
AddIfNotNullOrWhiteSpace("main", Project.ReadPropertyString(
PropertyNames
.StartupObject));
45
AddIfNotNullOrWhiteSpace("moduleassemblyname", Project.ReadPropertyString(
PropertyNames
.ModuleAssemblyName));
46
AddIfTrue("nostdlib", Project.ReadPropertyBool(
PropertyNames
.NoCompilerStandardLib));
47
AddIfNotNullOrWhiteSpace("nowarn", Project.ReadPropertyString(
PropertyNames
.NoWarn));
48
AddIfTrue("optimize", Project.ReadPropertyBool(
PropertyNames
.Optimize));
49
AddIfNotNullOrWhiteSpace("out", Project.ReadItemsAsString(
PropertyNames
.IntermediateAssembly));
50
AddIfNotNullOrWhiteSpace("pdb", Project.ReadPropertyString(
PropertyNames
.PdbFile));
51
AddIfNotNullOrWhiteSpace("ruleset", Project.ReadPropertyString(
PropertyNames
.ResolvedCodeAnalysisRuleSet));
52
AddIfNotNullOrWhiteSpace("subsystemversion", Project.ReadPropertyString(
PropertyNames
.SubsystemVersion));
53
AddIfNotNullOrWhiteSpace("target", Project.ReadPropertyString(
PropertyNames
.OutputType));
54
AddIfTrue("unsafe", Project.ReadPropertyBool(
PropertyNames
.AllowUnsafeBlocks));
55
Add("warn", Project.ReadPropertyInt(
PropertyNames
.WarningLevel));
56
AddIfTrue("warnaserror", Project.ReadPropertyBool(
PropertyNames
.TreatWarningsAsErrors));
57
AddIfNotNullOrWhiteSpace("warnaserror+", Project.ReadPropertyString(
PropertyNames
.WarningsAsErrors));
58
AddIfNotNullOrWhiteSpace("warnaserror-", Project.ReadPropertyString(
PropertyNames
.WarningsNotAsErrors));
MSBuild\ProjectFile\CommandLineArgumentReader.cs (10)
155
var emitDebugInfo = Project.ReadPropertyBool(
PropertyNames
.DebugSymbols);
158
var debugType = Project.ReadPropertyString(
PropertyNames
.DebugType);
168
var delaySign = Project.ReadPropertyString(
PropertyNames
.DelaySign);
177
var errorReport = Project.ReadPropertyString(
PropertyNames
.ErrorReport);
186
var features = Project.ReadPropertyString(
PropertyNames
.Features);
215
var platform = Project.ReadPropertyString(
PropertyNames
.PlatformTarget);
216
var prefer32bit = Project.ReadPropertyBool(
PropertyNames
.Prefer32Bit);
253
var signAssembly = Project.ReadPropertyBool(
PropertyNames
.SignAssembly);
256
var keyFile = Project.ReadPropertyString(
PropertyNames
.KeyOriginatorFile);
262
var keyContainer = Project.ReadPropertyString(
PropertyNames
.KeyContainerName);
MSBuild\ProjectFile\Extensions.cs (1)
99
=> executedProject.ReadPropertyInt(
PropertyNames
.CodePage) is >= 0 and var codePage ? codePage : 0;
MSBuild\ProjectFile\ProjectInstanceReader.cs (10)
44
var outputFilePath = _projectInstance.ReadPropertyString(
PropertyNames
.TargetPath);
50
var outputRefFilePath = _projectInstance.ReadPropertyString(
PropertyNames
.TargetRefPath);
56
var generatedFilesOutputDirectory = _projectInstance.ReadPropertyString(
PropertyNames
.CompilerGeneratedFilesOutputPath);
67
var projectAssetsFilePath = _projectInstance.ReadPropertyString(
PropertyNames
.ProjectAssetsFile);
74
var defaultNamespace = _projectInstance.ReadPropertyString(
PropertyNames
.RootNamespace) ?? string.Empty;
76
var targetFramework = _projectInstance.ReadPropertyString(
PropertyNames
.TargetFramework);
82
var targetFrameworkIdentifier = _projectInstance.ReadPropertyString(
PropertyNames
.TargetFrameworkIdentifier);
84
var targetFrameworkVersion = _projectInstance.ReadPropertyString(
PropertyNames
.TargetFrameworkVersion);
108
var checksumAlgorithm = _projectInstance.ReadPropertyString(
PropertyNames
.ChecksumAlgorithm);
112
checksumAlgorithm = _projectInstance.ReadPropertyString(
PropertyNames
.PdbChecksumAlgorithm);
MSBuild\VisualBasic\VisualBasicCommandLineArgumentReader.cs (30)
40
AddIfNotNullOrWhiteSpace("baseaddress", Project.ReadPropertyString(
PropertyNames
.BaseAddress));
41
AddIfNotNullOrWhiteSpace("define", Project.ReadPropertyString(
PropertyNames
.FinalDefineConstants));
42
AddIfNotNullOrWhiteSpace("filealign", Project.ReadPropertyString(
PropertyNames
.FileAlignment));
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("netcf", Project.ReadPropertyBool(
PropertyNames
.TargetCompactFramework));
48
AddIfTrue("nostdlib", Project.ReadPropertyBool(
PropertyNames
.NoCompilerStandardLib));
49
AddIfNotNullOrWhiteSpace("nowarn", Project.ReadPropertyString(
PropertyNames
.NoWarn));
50
AddIfTrue("nowarn", Project.ReadPropertyBool(
PropertyNames
._NoWarnings));
51
AddIfTrue("optimize", Project.ReadPropertyBool(
PropertyNames
.Optimize));
52
AddIfNotNullOrWhiteSpace("out", Project.ReadItemsAsString(
PropertyNames
.IntermediateAssembly));
53
AddIfTrue("removeintchecks", Project.ReadPropertyBool(
PropertyNames
.RemoveIntegerChecks));
54
AddIfNotNullOrWhiteSpace("rootnamespace", Project.ReadPropertyString(
PropertyNames
.RootNamespace));
55
AddIfNotNullOrWhiteSpace("ruleset", Project.ReadPropertyString(
PropertyNames
.ResolvedCodeAnalysisRuleSet));
56
AddIfNotNullOrWhiteSpace("sdkpath", Project.ReadPropertyString(
PropertyNames
.FrameworkPathOverride));
57
AddIfNotNullOrWhiteSpace("subsystemversion", Project.ReadPropertyString(
PropertyNames
.SubsystemVersion));
58
AddIfNotNullOrWhiteSpace("target", Project.ReadPropertyString(
PropertyNames
.OutputType));
59
AddIfTrue("warnaserror", Project.ReadPropertyBool(
PropertyNames
.TreatWarningsAsErrors));
60
AddIfNotNullOrWhiteSpace("warnaserror+", Project.ReadPropertyString(
PropertyNames
.WarningsAsErrors));
61
AddIfNotNullOrWhiteSpace("warnaserror-", Project.ReadPropertyString(
PropertyNames
.WarningsNotAsErrors));
66
var documentationFile = Project.ReadPropertyString(
PropertyNames
.DocFileItem);
67
var generateDocumentation = Project.ReadPropertyBool(
PropertyNames
.GenerateDocumentation);
86
var optionCompare = Project.ReadPropertyString(
PropertyNames
.OptionCompare);
97
AddIfFalse("optionexplicit-", Project.ReadPropertyBool(
PropertyNames
.OptionExplicit));
99
AddIfTrue("optioninfer", Project.ReadPropertyBool(
PropertyNames
.OptionInfer));
100
AddWithPlusOrMinus("optionstrict", Project.ReadPropertyBool(
PropertyNames
.OptionStrict));
101
AddIfNotNullOrWhiteSpace("optionstrict", Project.ReadPropertyString(
PropertyNames
.OptionStrictType));
106
var vbRuntime = Project.ReadPropertyString(
PropertyNames
.VbRuntime);