| File: AssemblyFolders\AssemblyFoldersExInfo.cs | Web Access |
| Project: src\msbuild\src\Utilities\Microsoft.Build.Utilities.csproj (Microsoft.Build.Utilities.Core) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.Versioning; using Microsoft.Win32; namespace Microsoft.Build.Utilities { /// <summary> /// Contains information about entries in the AssemblyFoldersEx registry keys. /// </summary> [SupportedOSPlatform("windows")] public class AssemblyFoldersExInfo { /// <summary> /// Constructor /// </summary> public AssemblyFoldersExInfo(RegistryHive hive, RegistryView view, string registryKey, string directoryPath, Version targetFrameworkVersion) { ArgumentNullException.ThrowIfNull(registryKey); ArgumentNullException.ThrowIfNull(directoryPath); ArgumentNullException.ThrowIfNull(targetFrameworkVersion); Hive = hive; View = view; Key = registryKey; DirectoryPath = directoryPath; TargetFrameworkVersion = targetFrameworkVersion; } /// <summary> /// Registry hive used /// </summary> public RegistryHive Hive { get; } /// <summary> /// Registry view used /// </summary> public RegistryView View { get; } /// <summary> /// The registry key to the component /// </summary> public string Key { get; } /// <summary> /// Folder found at the registry keys default value /// </summary> public string DirectoryPath { get; } /// <summary> /// Target framework version for the registry key /// </summary> public Version TargetFrameworkVersion { get; } } }