3 instantiations of InstallStateContents
dotnet-aot (3)
_generated\34\InstallStateJsonSerializerContext.InstallStateContents.g.cs (1)
31ObjectCreator = () => new global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents(),
src\sdk\src\Cli\dotnet\Commands\Workload\InstallStateContents.cs (2)
26return JsonSerializer.Deserialize(contents, InstallStateJsonSerializerContext.Default.InstallStateContents) ?? new InstallStateContents(); 31return File.Exists(path) ? FromString(File.ReadAllText(path)) : new InstallStateContents();
31 references to InstallStateContents
dotnet-aot (31)
_generated\34\InstallStateJsonSerializerContext.InstallStateContents.g.cs (26)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents>? _InstallStateContents; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents> InstallStateContents 22get => _InstallStateContents ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents>)Options.GetTypeInfo(typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents> Create_InstallStateContents(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents), 60Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents)obj).UseWorkloadSets, 61Setter = static (obj, value) => ((global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents)obj).UseWorkloadSets = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetProperty("UseWorkloadSets", InstanceMemberBindingFlags, null, typeof(bool?), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents), 80Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents)obj).Manifests, 81Setter = static (obj, value) => ((global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents)obj).Manifests = value!, 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetProperty("Manifests", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 98DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents), 100Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents)obj).WorkloadVersion, 101Setter = static (obj, value) => ((global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents)obj).WorkloadVersion = value!, 108AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetProperty("WorkloadVersion", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 118private void InstallStateContentsSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents? value) 128bool? __value_UseWorkloadSets = ((global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents)value).UseWorkloadSets; 134global::System.Collections.Generic.Dictionary<string, string> __value_Manifests = ((global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents)value).Manifests; 140string __value_WorkloadVersion = ((global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents)value).WorkloadVersion;
_generated\38\InstallStateJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
30if (type == typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents))
src\sdk\src\Cli\dotnet\Commands\Workload\InstallStateContents.cs (3)
24public static InstallStateContents FromString(string contents) 29public static InstallStateContents FromPath(string path) 46[JsonSerializable(typeof(InstallStateContents))]
src\sdk\src\Cli\dotnet\Commands\Workload\WorkloadInfoHelper.cs (1)
174var useWorkloadSets = InstallStateContents.FromPath(Path.Combine(WorkloadInstallType.GetInstallStateFolder(_currentSdkFeatureBand, UserLocalPath), "default.json")).ShouldUseWorkloadSets();