27 references to PropertyNames
Microsoft.DotNet.HotReload.Watch (27)
AppModels\HotReloadAppModel.cs (7)
72if (!project.ProjectInstance.GetBooleanPropertyValue(PropertyNames.StartupHookSupport, defaultValue: true) && 77project.ProjectInstance.GetBooleanPropertyValue(PropertyNames.PublishAot) 78? (PropertyNames.PublishAot, true) 79: project.ProjectInstance.GetBooleanPropertyValue(PropertyNames.PublishTrimmed) 80? (PropertyNames.PublishTrimmed, true) 81: (PropertyNames.StartupHookSupport, false); 83logger.Log(MessageDescriptor.ProjectDoesNotSupportHotReload_Property, propertyName, propertyValue.ToString(), PropertyNames.StartupHookSupport, "True");
AppModels\WebApplicationAppModel.cs (1)
42var targetFramework = clientProject.GetTargetFrameworkVersion() ?? throw new InvalidOperationException($"Project doesn't define {PropertyNames.TargetFrameworkMoniker}");
Build\EvaluationResult.cs (6)
47.SetItem(PropertyNames.DotNetWatchBuild, "true") 48.SetItem(PropertyNames.DesignTimeBuild, "true") 49.SetItem(PropertyNames.SkipCompilerExecution, "true") 50.SetItem(PropertyNames.ProvideCommandLineArgs, "true") 52.SetItem(PropertyNames.NonExistentFile, "__NonExistentSubDir__\\__NonExistentFile__"); 275targets.AddRange(projectInstance.GetStringListPropertyValue(PropertyNames.CustomCollectWatchItems));
Build\ProjectGraphUtilities.cs (11)
23=> project.GetPropertyValue(PropertyNames.TargetFramework); 26=> project.GetStringListPropertyValue(PropertyNames.TargetFrameworks); 32return new FrameworkName(projectNode.ProjectInstance.GetPropertyValue(PropertyNames.TargetFrameworkMoniker)).Version; 41=> projectNode.GetStringListPropertyValue(PropertyNames.WebAssemblyHotReloadCapabilities); 50=> IsNetCoreApp(projectNode.ProjectInstance.GetPropertyValue(PropertyNames.TargetFrameworkIdentifier)); 59=> project.GetPropertyValue(PropertyNames.TargetPath) is { Length: >0 } path ? Path.GetDirectoryName(Path.Combine(project.Directory, path)) : null; 62=> projectNode.ProjectInstance.GetPropertyValue(PropertyNames.TargetName); 65=> project.GetPropertyValue(PropertyNames.IntermediateOutputPath) is { Length: >0 } path ? Path.Combine(project.Directory, path) : null; 71=> projectNode.GetBooleanPropertyValue(PropertyNames.HotReloadAutoRestart); 74=> projectNode.GetBooleanPropertyValue(PropertyNames.EnableDefaultItems); 77=> projectNode.GetStringListPropertyValue(PropertyNames.DefaultItemExcludes);
HotReload\HotReloadDotNetWatcher.cs (2)
1009if (VirtualProjectBuilder.GetPropertyFromSourceFile(sourcePath, PropertyNames.TargetFramework) is { } framework and not "") 1013else if (VirtualProjectBuilder.GetPropertyFromSourceFile(sourcePath, PropertyNames.TargetFrameworks) is { } frameworks and not "")