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 } 259return project?.GetPropertyValue(PropertyNames.TargetPath); 286var targetFrameworkValue = project.GetPropertyValue(PropertyNames.TargetFramework); 287var targetFrameworksValue = project.GetPropertyValue(PropertyNames.TargetFrameworks); 300if (!project.GlobalProperties.TryGetValue(PropertyNames.TargetFramework, out var initialGlobalTargetFrameworkValue)) 306project.SetGlobalProperty(PropertyNames.TargetFramework, targetFramework); 315project.RemoveGlobalProperty(PropertyNames.TargetFramework); 319project.SetGlobalProperty(PropertyNames.TargetFramework, initialGlobalTargetFrameworkValue);
MSBuild\CSharp\CSharpCommandLineArgumentReader.cs (23)
33AddIfNotNullOrWhiteSpace("appconfig", Project.ReadPropertyString(PropertyNames.AppConfigForCompiler)); 34AddIfNotNullOrWhiteSpace("baseaddress", Project.ReadPropertyString(PropertyNames.BaseAddress)); 35AddIfTrue("checked", Project.ReadPropertyBool(PropertyNames.CheckForOverflowUnderflow)); 36AddIfNotNullOrWhiteSpace("define", Project.ReadPropertyString(PropertyNames.DefineConstants)); 37AddIfNotNullOrWhiteSpace("filealign", Project.ReadPropertyString(PropertyNames.FileAlignment)); 39AddIfTrue("fullpaths", Project.ReadPropertyBool(PropertyNames.GenerateFullPaths)); 40AddIfTrue("highentropyva", Project.ReadPropertyBool(PropertyNames.HighEntropyVA)); 41AddIfNotNullOrWhiteSpace("langversion", Project.ReadPropertyString(PropertyNames.LangVersion)); 42AddIfNotNullOrWhiteSpace("main", Project.ReadPropertyString(PropertyNames.StartupObject)); 43AddIfNotNullOrWhiteSpace("moduleassemblyname", Project.ReadPropertyString(PropertyNames.ModuleAssemblyName)); 44AddIfTrue("nostdlib", Project.ReadPropertyBool(PropertyNames.NoCompilerStandardLib)); 45AddIfNotNullOrWhiteSpace("nowarn", Project.ReadPropertyString(PropertyNames.NoWarn)); 46AddIfTrue("optimize", Project.ReadPropertyBool(PropertyNames.Optimize)); 47AddIfNotNullOrWhiteSpace("out", Project.ReadItemsAsString(PropertyNames.IntermediateAssembly)); 48AddIfNotNullOrWhiteSpace("pdb", Project.ReadPropertyString(PropertyNames.PdbFile)); 49AddIfNotNullOrWhiteSpace("ruleset", Project.ReadPropertyString(PropertyNames.ResolvedCodeAnalysisRuleSet)); 50AddIfNotNullOrWhiteSpace("subsystemversion", Project.ReadPropertyString(PropertyNames.SubsystemVersion)); 51AddIfNotNullOrWhiteSpace("target", Project.ReadPropertyString(PropertyNames.OutputType)); 52AddIfTrue("unsafe", Project.ReadPropertyBool(PropertyNames.AllowUnsafeBlocks)); 53Add("warn", Project.ReadPropertyInt(PropertyNames.WarningLevel)); 54AddIfTrue("warnaserror", Project.ReadPropertyBool(PropertyNames.TreatWarningsAsErrors)); 55AddIfNotNullOrWhiteSpace("warnaserror+", Project.ReadPropertyString(PropertyNames.WarningsAsErrors)); 56AddIfNotNullOrWhiteSpace("warnaserror-", Project.ReadPropertyString(PropertyNames.WarningsNotAsErrors));
MSBuild\ProjectFile\CommandLineArgumentReader.cs (10)
143var emitDebugInfo = Project.ReadPropertyBool(PropertyNames.DebugSymbols); 146var debugType = Project.ReadPropertyString(PropertyNames.DebugType); 156var delaySign = Project.ReadPropertyString(PropertyNames.DelaySign); 165var errorReport = Project.ReadPropertyString(PropertyNames.ErrorReport); 174var features = Project.ReadPropertyString(PropertyNames.Features); 203var platform = Project.ReadPropertyString(PropertyNames.PlatformTarget); 204var prefer32bit = Project.ReadPropertyBool(PropertyNames.Prefer32Bit); 216var signAssembly = Project.ReadPropertyBool(PropertyNames.SignAssembly); 219var keyFile = Project.ReadPropertyString(PropertyNames.KeyOriginatorFile); 225var 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)
69var outputFilePath = _projectInstance.ReadPropertyString(PropertyNames.TargetPath); 75var outputRefFilePath = _projectInstance.ReadPropertyString(PropertyNames.TargetRefPath); 81var generatedFilesOutputDirectory = _projectInstance.ReadPropertyString(PropertyNames.CompilerGeneratedFilesOutputPath); 92var projectAssetsFilePath = _projectInstance.ReadPropertyString(PropertyNames.ProjectAssetsFile); 99var defaultNamespace = _projectInstance.ReadPropertyString(PropertyNames.RootNamespace) ?? string.Empty; 101var targetFramework = _projectInstance.ReadPropertyString(PropertyNames.TargetFramework); 107var targetFrameworkIdentifier = _projectInstance.ReadPropertyString(PropertyNames.TargetFrameworkIdentifier); 109var targetFrameworkVersion = _projectInstance.ReadPropertyString(PropertyNames.TargetFrameworkVersion); 130var checksumAlgorithm = _projectInstance.ReadPropertyString(PropertyNames.ChecksumAlgorithm); 134checksumAlgorithm = _projectInstance.ReadPropertyString(PropertyNames.PdbChecksumAlgorithm);
MSBuild\VisualBasic\VisualBasicCommandLineArgumentReader.cs (30)
38AddIfNotNullOrWhiteSpace("baseaddress", Project.ReadPropertyString(PropertyNames.BaseAddress)); 39AddIfNotNullOrWhiteSpace("define", Project.ReadPropertyString(PropertyNames.FinalDefineConstants)); 40AddIfNotNullOrWhiteSpace("filealign", Project.ReadPropertyString(PropertyNames.FileAlignment)); 41AddIfTrue("highentropyva", Project.ReadPropertyBool(PropertyNames.HighEntropyVA)); 42AddIfNotNullOrWhiteSpace("langversion", Project.ReadPropertyString(PropertyNames.LangVersion)); 43AddIfNotNullOrWhiteSpace("main", Project.ReadPropertyString(PropertyNames.StartupObject)); 44AddIfNotNullOrWhiteSpace("moduleassemblyname", Project.ReadPropertyString(PropertyNames.ModuleAssemblyName)); 45AddIfTrue("netcf", Project.ReadPropertyBool(PropertyNames.TargetCompactFramework)); 46AddIfTrue("nostdlib", Project.ReadPropertyBool(PropertyNames.NoCompilerStandardLib)); 47AddIfNotNullOrWhiteSpace("nowarn", Project.ReadPropertyString(PropertyNames.NoWarn)); 48AddIfTrue("nowarn", Project.ReadPropertyBool(PropertyNames._NoWarnings)); 49AddIfTrue("optimize", Project.ReadPropertyBool(PropertyNames.Optimize)); 50AddIfNotNullOrWhiteSpace("out", Project.ReadItemsAsString(PropertyNames.IntermediateAssembly)); 51AddIfTrue("removeintchecks", Project.ReadPropertyBool(PropertyNames.RemoveIntegerChecks)); 52AddIfNotNullOrWhiteSpace("rootnamespace", Project.ReadPropertyString(PropertyNames.RootNamespace)); 53AddIfNotNullOrWhiteSpace("ruleset", Project.ReadPropertyString(PropertyNames.ResolvedCodeAnalysisRuleSet)); 54AddIfNotNullOrWhiteSpace("sdkpath", Project.ReadPropertyString(PropertyNames.FrameworkPathOverride)); 55AddIfNotNullOrWhiteSpace("subsystemversion", Project.ReadPropertyString(PropertyNames.SubsystemVersion)); 56AddIfNotNullOrWhiteSpace("target", Project.ReadPropertyString(PropertyNames.OutputType)); 57AddIfTrue("warnaserror", Project.ReadPropertyBool(PropertyNames.TreatWarningsAsErrors)); 58AddIfNotNullOrWhiteSpace("warnaserror+", Project.ReadPropertyString(PropertyNames.WarningsAsErrors)); 59AddIfNotNullOrWhiteSpace("warnaserror-", Project.ReadPropertyString(PropertyNames.WarningsNotAsErrors)); 64var documentationFile = Project.ReadPropertyString(PropertyNames.DocFileItem); 65var generateDocumentation = Project.ReadPropertyBool(PropertyNames.GenerateDocumentation); 84var optionCompare = Project.ReadPropertyString(PropertyNames.OptionCompare); 95AddIfFalse("optionexplicit-", Project.ReadPropertyBool(PropertyNames.OptionExplicit)); 97AddIfTrue("optioninfer", Project.ReadPropertyBool(PropertyNames.OptionInfer)); 98AddWithPlusOrMinus("optionstrict", Project.ReadPropertyBool(PropertyNames.OptionStrict)); 99AddIfNotNullOrWhiteSpace("optionstrict", Project.ReadPropertyString(PropertyNames.OptionStrictType)); 104var vbRuntime = Project.ReadPropertyString(PropertyNames.VbRuntime);