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