38 references to PropertyNames
Microsoft.DotNet.HotReload.Watch (38)
AppModels\HotReloadAppModel.cs (18)
72
if (!project.ProjectInstance.GetBooleanPropertyValue(
PropertyNames
.EnableHotReloadInRuntimeConfigDevFile, defaultValue: true))
75
var metadataUpdaterSupported = project.ProjectInstance.GetBooleanPropertyValue(
PropertyNames
.MetadataUpdaterSupport, defaultValue: true);
81
metadataUpdaterSupported ?
PropertyNames
.StartupHookSupport :
PropertyNames
.MetadataUpdaterSupport,
84
PropertyNames
.EnableHotReloadInRuntimeConfigDevFile,
97
project.ProjectInstance.GetBooleanPropertyValue(
PropertyNames
.PublishAot)
98
? (
PropertyNames
.PublishAot, true)
99
: project.ProjectInstance.GetBooleanPropertyValue(
PropertyNames
.PublishTrimmed)
100
? (
PropertyNames
.PublishTrimmed, true)
101
: (
PropertyNames
.StartupHookSupport, false);
103
logger.Log(MessageDescriptor.ProjectDoesNotSupportHotReload_Property, propertyName, propertyValue.ToString(),
PropertyNames
.StartupHookSupport, "True");
111
if (project.ProjectInstance.GetBooleanPropertyValue(
PropertyNames
.Optimize))
113
logger.Log(MessageDescriptor.ProjectDoesNotSupportHotReload_Property,
PropertyNames
.Optimize, "True",
PropertyNames
.Optimize, "False");
117
if (!project.ProjectInstance.GetBooleanPropertyValue(
PropertyNames
.DebugSymbols))
119
logger.Log(MessageDescriptor.ProjectDoesNotSupportHotReload_Property,
PropertyNames
.DebugSymbols, "False",
PropertyNames
.DebugSymbols, "True");
127
=> project.ProjectInstance.GetBooleanPropertyValue(
PropertyNames
.StartupHookSupport, defaultValue: true) ||
AppModels\WebApplicationAppModel.cs (1)
46
var 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__");
275
targets.AddRange(projectInstance.GetStringListPropertyValue(
PropertyNames
.CustomCollectWatchItems));
Build\ProjectGraphUtilities.cs (11)
23
=> project.GetPropertyValue(
PropertyNames
.TargetFramework);
26
=> project.GetStringListPropertyValue(
PropertyNames
.TargetFrameworks);
32
return 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)
1009
if (VirtualProjectBuilder.GetPropertyFromSourceFile(sourcePath,
PropertyNames
.TargetFramework) is { } framework and not "")
1013
else if (VirtualProjectBuilder.GetPropertyFromSourceFile(sourcePath,
PropertyNames
.TargetFrameworks) is { } frameworks and not "")