File: TestOutputDirectoryAttribute.cs
Web Access
Project: src\src\Testing\src\Microsoft.AspNetCore.InternalTesting.csproj (Microsoft.AspNetCore.InternalTesting)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System;
 
namespace Microsoft.AspNetCore.InternalTesting;
 
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false, Inherited = true)]
public class TestOutputDirectoryAttribute : Attribute
{
    public TestOutputDirectoryAttribute(string preserveExistingLogsInOutput, string targetFramework, string baseDirectory = null)
    {
        TargetFramework = targetFramework;
        BaseDirectory = baseDirectory;
        PreserveExistingLogsInOutput = bool.Parse(preserveExistingLogsInOutput);
    }
 
    public string BaseDirectory { get; }
    public string TargetFramework { get; }
    public bool PreserveExistingLogsInOutput { get; }
}