87 references to PropertyNames
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (87)
Build\ProjectBuildManager.cs (9)
30{ PropertyNames.DesignTimeBuild, bool.TrueString }, 34{ PropertyNames.NonExistentFile, "__NonExistentSubDir__\\__NonExistentFile__" }, 41{ PropertyNames.BuildProjectReferences, bool.FalseString }, 42{ PropertyNames.BuildingProject, bool.FalseString }, 45{ PropertyNames.ProvideCommandLineArgs, bool.TrueString }, 48{ PropertyNames.SkipCompilerExecution, bool.TrueString }, 50{ PropertyNames.ContinueOnError, PropertyValues.ErrorAndContinue }, 56{ PropertyNames.ShouldUnsetParentConfigurationAndPlatform, bool.FalseString } 162return project?.GetPropertyValue(PropertyNames.TargetPath);
MSBuild\CSharp\CSharpCommandLineArgumentReader.cs (23)
36AddIfNotNullOrWhiteSpace("appconfig", Project.ReadPropertyString(PropertyNames.AppConfigForCompiler)); 37AddIfNotNullOrWhiteSpace("baseaddress", Project.ReadPropertyString(PropertyNames.BaseAddress)); 38AddIfTrue("checked", Project.ReadPropertyBool(PropertyNames.CheckForOverflowUnderflow)); 39AddIfNotNullOrWhiteSpace("define", Project.ReadPropertyString(PropertyNames.DefineConstants)); 40AddIfNotNullOrWhiteSpace("filealign", Project.ReadPropertyString(PropertyNames.FileAlignment)); 42AddIfTrue("fullpaths", Project.ReadPropertyBool(PropertyNames.GenerateFullPaths)); 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("nostdlib", Project.ReadPropertyBool(PropertyNames.NoCompilerStandardLib)); 48AddIfNotNullOrWhiteSpace("nowarn", Project.ReadPropertyString(PropertyNames.NoWarn)); 49AddIfTrue("optimize", Project.ReadPropertyBool(PropertyNames.Optimize)); 50AddIfNotNullOrWhiteSpace("out", Project.ReadItemsAsString(PropertyNames.IntermediateAssembly)); 51AddIfNotNullOrWhiteSpace("pdb", Project.ReadPropertyString(PropertyNames.PdbFile)); 52AddIfNotNullOrWhiteSpace("ruleset", Project.ReadPropertyString(PropertyNames.ResolvedCodeAnalysisRuleSet)); 53AddIfNotNullOrWhiteSpace("subsystemversion", Project.ReadPropertyString(PropertyNames.SubsystemVersion)); 54AddIfNotNullOrWhiteSpace("target", Project.ReadPropertyString(PropertyNames.OutputType)); 55AddIfTrue("unsafe", Project.ReadPropertyBool(PropertyNames.AllowUnsafeBlocks)); 56Add("warn", Project.ReadPropertyInt(PropertyNames.WarningLevel)); 57AddIfTrue("warnaserror", Project.ReadPropertyBool(PropertyNames.TreatWarningsAsErrors)); 58AddIfNotNullOrWhiteSpace("warnaserror+", Project.ReadPropertyString(PropertyNames.WarningsAsErrors)); 59AddIfNotNullOrWhiteSpace("warnaserror-", Project.ReadPropertyString(PropertyNames.WarningsNotAsErrors));
MSBuild\ProjectFile\CommandLineArgumentReader.cs (11)
153var codePage = Project.ReadPropertyInt(PropertyNames.CodePage); 168var emitDebugInfo = Project.ReadPropertyBool(PropertyNames.DebugSymbols); 171var debugType = Project.ReadPropertyString(PropertyNames.DebugType); 181var delaySign = Project.ReadPropertyString(PropertyNames.DelaySign); 190var errorReport = Project.ReadPropertyString(PropertyNames.ErrorReport); 199var features = Project.ReadPropertyString(PropertyNames.Features); 228var platform = Project.ReadPropertyString(PropertyNames.PlatformTarget); 229var prefer32bit = Project.ReadPropertyBool(PropertyNames.Prefer32Bit); 276var signAssembly = Project.ReadPropertyBool(PropertyNames.SignAssembly); 279var keyFile = Project.ReadPropertyString(PropertyNames.KeyOriginatorFile); 285var keyContainer = Project.ReadPropertyString(PropertyNames.KeyContainerName);
MSBuild\ProjectFile\ProjectFile.cs (14)
58var targetFrameworkValue = _loadedProject.GetPropertyValue(PropertyNames.TargetFramework); 59var targetFrameworksValue = _loadedProject.GetPropertyValue(PropertyNames.TargetFrameworks); 69if (!_loadedProject.GlobalProperties.TryGetValue(PropertyNames.TargetFramework, out var initialGlobalTargetFrameworkValue)) 75_loadedProject.SetGlobalProperty(PropertyNames.TargetFramework, targetFramework); 85_loadedProject.RemoveGlobalProperty(PropertyNames.TargetFramework); 89_loadedProject.SetGlobalProperty(PropertyNames.TargetFramework, initialGlobalTargetFrameworkValue); 122var outputFilePath = project.ReadPropertyString(PropertyNames.TargetPath); 128var outputRefFilePath = project.ReadPropertyString(PropertyNames.TargetRefPath); 134var generatedFilesOutputDirectory = project.ReadPropertyString(PropertyNames.CompilerGeneratedFilesOutputPath); 145var projectAssetsFilePath = project.ReadPropertyString(PropertyNames.ProjectAssetsFile); 152var defaultNamespace = project.ReadPropertyString(PropertyNames.RootNamespace) ?? string.Empty; 154var targetFramework = project.ReadPropertyString(PropertyNames.TargetFramework); 160var targetFrameworkIdentifier = project.ReadPropertyString(PropertyNames.TargetFrameworkIdentifier); 162var targetFrameworkVersion = project.ReadPropertyString(PropertyNames.TargetFrameworkVersion);
MSBuild\VisualBasic\VisualBasicCommandLineArgumentReader.cs (30)
41AddIfNotNullOrWhiteSpace("baseaddress", Project.ReadPropertyString(PropertyNames.BaseAddress)); 42AddIfNotNullOrWhiteSpace("define", Project.ReadPropertyString(PropertyNames.FinalDefineConstants)); 43AddIfNotNullOrWhiteSpace("filealign", Project.ReadPropertyString(PropertyNames.FileAlignment)); 44AddIfTrue("highentropyva", Project.ReadPropertyBool(PropertyNames.HighEntropyVA)); 45AddIfNotNullOrWhiteSpace("langversion", Project.ReadPropertyString(PropertyNames.LangVersion)); 46AddIfNotNullOrWhiteSpace("main", Project.ReadPropertyString(PropertyNames.StartupObject)); 47AddIfNotNullOrWhiteSpace("moduleassemblyname", Project.ReadPropertyString(PropertyNames.ModuleAssemblyName)); 48AddIfTrue("netcf", Project.ReadPropertyBool(PropertyNames.TargetCompactFramework)); 49AddIfTrue("nostdlib", Project.ReadPropertyBool(PropertyNames.NoCompilerStandardLib)); 50AddIfNotNullOrWhiteSpace("nowarn", Project.ReadPropertyString(PropertyNames.NoWarn)); 51AddIfTrue("nowarn", Project.ReadPropertyBool(PropertyNames._NoWarnings)); 52AddIfTrue("optimize", Project.ReadPropertyBool(PropertyNames.Optimize)); 53AddIfNotNullOrWhiteSpace("out", Project.ReadItemsAsString(PropertyNames.IntermediateAssembly)); 54AddIfTrue("removeintchecks", Project.ReadPropertyBool(PropertyNames.RemoveIntegerChecks)); 55AddIfNotNullOrWhiteSpace("rootnamespace", Project.ReadPropertyString(PropertyNames.RootNamespace)); 56AddIfNotNullOrWhiteSpace("ruleset", Project.ReadPropertyString(PropertyNames.ResolvedCodeAnalysisRuleSet)); 57AddIfNotNullOrWhiteSpace("sdkpath", Project.ReadPropertyString(PropertyNames.FrameworkPathOverride)); 58AddIfNotNullOrWhiteSpace("subsystemversion", Project.ReadPropertyString(PropertyNames.SubsystemVersion)); 59AddIfNotNullOrWhiteSpace("target", Project.ReadPropertyString(PropertyNames.OutputType)); 60AddIfTrue("warnaserror", Project.ReadPropertyBool(PropertyNames.TreatWarningsAsErrors)); 61AddIfNotNullOrWhiteSpace("warnaserror+", Project.ReadPropertyString(PropertyNames.WarningsAsErrors)); 62AddIfNotNullOrWhiteSpace("warnaserror-", Project.ReadPropertyString(PropertyNames.WarningsNotAsErrors)); 67var documentationFile = Project.ReadPropertyString(PropertyNames.DocFileItem); 68var generateDocumentation = Project.ReadPropertyBool(PropertyNames.GenerateDocumentation); 87var optionCompare = Project.ReadPropertyString(PropertyNames.OptionCompare); 98AddIfFalse("optionexplicit-", Project.ReadPropertyBool(PropertyNames.OptionExplicit)); 100AddIfTrue("optioninfer", Project.ReadPropertyBool(PropertyNames.OptionInfer)); 101AddWithPlusOrMinus("optionstrict", Project.ReadPropertyBool(PropertyNames.OptionStrict)); 102AddIfNotNullOrWhiteSpace("optionstrict", Project.ReadPropertyString(PropertyNames.OptionStrictType)); 107var vbRuntime = Project.ReadPropertyString(PropertyNames.VbRuntime);