File: LockFile\LockFileRuntimeTarget.cs
Web Access
Project: src\src\nuget-client\src\NuGet.Core\NuGet.ProjectModel\NuGet.ProjectModel.csproj (NuGet.ProjectModel)
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

#nullable disable

namespace NuGet.ProjectModel
{
    public class LockFileRuntimeTarget : LockFileItem
    {
        public static readonly string RidProperty = "rid";
        public static readonly string AssetTypeProperty = "assetType";

        public LockFileRuntimeTarget(string path) : base(path)
        {
        }

        public LockFileRuntimeTarget(string path, string runtime, string assetType) : this(path)
        {
            Runtime = runtime;
            AssetType = assetType;
        }

        public string Runtime
        {
            get
            {
                return GetProperty(RidProperty);
            }
            set
            {
                SetProperty(RidProperty, value);
            }
        }

        public string AssetType
        {
            get
            {
                return GetProperty(AssetTypeProperty);
            }
            set
            {
                SetProperty(AssetTypeProperty, value);
            }
        }
    }
}