44 references to BuildLevel
dotnet (44)
_generated\40\RunFileJsonSerializerContext.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\41\RunFileJsonSerializerContext.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\50\RunFileJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
26if (type == typeof(global::Microsoft.DotNet.Cli.Commands.Run.BuildLevel))
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; 517private static bool CanUseRunPropertiesForCscBuiltProgram(BuildLevel level, RunFileBuildCacheEntry? previousCache) 519return level == BuildLevel.Csc || 520(level == BuildLevel.None && previousCache?.BuildLevel == BuildLevel.Csc); 1165usedMSBuild: projectBuilder.LastBuild.Level is BuildLevel.All, 1166usedRoslynCompiler: projectBuilder.LastBuild.Level is BuildLevel.Csc);
Commands\Run\VirtualProjectBuildingCommand.cs (21)
101public (BuildLevel Level, CacheInfo? Cache) LastBuild { get; private set; } 190LastBuild = (BuildLevel.None, Cache: null); 198LastBuild = (BuildLevel.None, Cache: null); 208var buildLevel = GetBuildLevel(out cache); 212if (buildLevel is BuildLevel.None) 226if (buildLevel is BuildLevel.Csc) 261buildLevel = BuildLevel.All; 266Debug.Assert(buildLevel is BuildLevel.All or BuildLevel.Csc); 757if (PreviousEntry?.BuildLevel != BuildLevel.Csc) 1059public BuildLevel GetBuildLevel(out CacheInfo? cache) 1065return BuildLevel.All; 1071return BuildLevel.None; 1076return BuildLevel.All; 1089return BuildLevel.Csc; 1098return BuildLevel.All; 1106return BuildLevel.All; 1113return BuildLevel.All; 1121return BuildLevel.All; 1143return BuildLevel.Csc; 1354public BuildLevel BuildLevel { get; set; }