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