|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
global using NativeMethodsShared = Microsoft.Build.Framework.NativeMethods;
namespace Microsoft.Build.UnitTests.Shared;
[System.AttributeUsage(System.AttributeTargets.Assembly)]
internal sealed class BootstrapLocationAttribute(string bootstrapRoot, string bootstrapMsBuildBinaryLocation, string bootstrapSdkVersion, string latestDotNetCoreForMSBuild) : System.Attribute
{
/// <summary>
/// Path to the root of the bootstrap MSBuild (in artifacts folder).
/// </summary>
public string BootstrapRoot { get; } = bootstrapRoot;
/// <summary>
/// Resolves path to MSBuild[.exe], depending on the runtime and OS.
/// </summary>
public string BootstrapMsBuildBinaryLocation { get; } = bootstrapMsBuildBinaryLocation;
/// <summary>
/// Returns the version of the SDK used by the bootstrap MSBuild.
/// </summary>
public string BootstrapSdkVersion { get; } = bootstrapSdkVersion;
/// <summary>
/// The latest .NET target framework setup in MSBuild.
/// </summary>
public string LatestDotNetCoreForMSBuild { get; } = latestDotNetCoreForMSBuild;
}
|