55 references to BuildLevel
dotnet (55)
_generated\39\RunFileBuildCacheJsonSerializerContext.BuildLevel.g.cs (9)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.
BuildLevel
>? _BuildLevel;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.
BuildLevel
> BuildLevel
22
get => _BuildLevel ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.
BuildLevel
>)Options.GetTypeInfo(typeof(global::Microsoft.DotNet.Cli.Commands.Run.
BuildLevel
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.
BuildLevel
> Create_BuildLevel(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.DotNet.Cli.Commands.Run.
BuildLevel
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.
BuildLevel
> jsonTypeInfo))
29
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateValueInfo<global::Microsoft.DotNet.Cli.Commands.Run.
BuildLevel
>(options, global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.GetEnumConverter<global::Microsoft.DotNet.Cli.Commands.Run.
BuildLevel
>(options));
_generated\40\RunFileBuildCacheJsonSerializerContext.RunFileBuildCacheEntry.g.cs (3)
139
var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.DotNet.Cli.Commands.Run.
BuildLevel
>
154
AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunFileBuildCacheEntry).GetProperty("BuildLevel", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.Cli.Commands.Run.
BuildLevel
), global::System.Array.Empty<global::System.Type>(), null),
157
properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.DotNet.Cli.Commands.Run.
BuildLevel
>(options, info4);
_generated\47\RunFileBuildCacheJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
22
if (type == typeof(global::Microsoft.DotNet.Cli.Commands.Run.
BuildLevel
))
Commands\Run\FileBasedAppCacheInfo.cs (1)
63
if (PreviousEntry?.BuildLevel !=
BuildLevel
.Csc)
Commands\Run\FileBasedAppRunPlan.cs (16)
73
BuildLevel
buildLevel = AnalyzeBuildLevel(inputs, out FileBasedAppCacheInfo? cache);
76
BuildLevel
.None => new RunPlan(RunTier.CachedLaunch, RunDecisionReason.CacheValid, cache),
77
BuildLevel
.Csc => new RunPlan(RunTier.DirectCompile, RunDecisionReason.DirectCompilationRequired, cache),
78
BuildLevel
.All => new RunPlan(RunTier.MSBuildBuild, RunDecisionReason.FullBuildRequired, cache),
103
BuildLevel:
BuildLevel
.Csc,
181
BuildLevel:
BuildLevel
.Csc,
200
private static
BuildLevel
AnalyzeBuildLevel(
208
return
BuildLevel
.All;
214
return
BuildLevel
.None;
219
return
BuildLevel
.All;
231
return
BuildLevel
.Csc;
239
return
BuildLevel
.All;
247
return
BuildLevel
.All;
254
return
BuildLevel
.All;
262
return
BuildLevel
.All;
283
return
BuildLevel
.Csc;
Commands\Run\RunCommand.cs (10)
187
runPropertiesFromEvaluation = projectBuilder?.LastBuild.Level ==
BuildLevel
.All;
198
var
buildLevel = projectBuilder.GetBuildLevel(out var cache);
199
projectFactory = CanUseRunPropertiesForCscBuiltProgram(
BuildLevel
.None, cache?.PreviousEntry) ? null : projectBuilder.CreateProjectInstance;
200
cachedRunProperties = buildLevel !=
BuildLevel
.All ? cache?.PreviousEntry?.Run : null;
472
private static bool CanUseRunPropertiesForCscBuiltProgram(
BuildLevel
level, RunFileBuildCacheEntry? previousCache)
474
return level ==
BuildLevel
.Csc ||
475
(level ==
BuildLevel
.None && previousCache?.BuildLevel ==
BuildLevel
.Csc);
1075
usedMSBuild: projectBuilder.LastBuild.Level is
BuildLevel
.All,
1076
usedRoslynCompiler: projectBuilder.LastBuild.Level is
BuildLevel
.Csc);
Commands\Run\RunFileBuildCacheEntry.cs (1)
45
public
BuildLevel
BuildLevel { get; set; }
Commands\Run\RunPlan.cs (4)
24
internal
BuildLevel
ToBuildLevel()
27
RunTier.CachedLaunch =>
BuildLevel
.None,
28
RunTier.DirectCompile =>
BuildLevel
.Csc,
29
RunTier.MSBuildBuild =>
BuildLevel
.All,
Commands\Run\VirtualProjectBuildingCommand.cs (10)
46
public (
BuildLevel
Level, FileBasedAppCacheInfo? Cache) LastBuild { get; private set; }
122
LastBuild = (
BuildLevel
.None, Cache: null);
130
LastBuild = (
BuildLevel
.None, Cache: null);
140
var
buildLevel = GetBuildLevel(out cache);
144
if (buildLevel is
BuildLevel
.None)
158
if (buildLevel is
BuildLevel
.Csc)
193
buildLevel =
BuildLevel
.All;
198
Debug.Assert(buildLevel is
BuildLevel
.All or
BuildLevel
.Csc);
655
public
BuildLevel
GetBuildLevel(out FileBasedAppCacheInfo? cache)