| File: RunInMTAAttribute.cs | Web Access |
| Project: src\msbuild\src\Framework\Microsoft.Build.Framework.csproj (Microsoft.Build.Framework) |
// 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.Diagnostics.CodeAnalysis; namespace Microsoft.Build.Framework { /// <summary> /// This attribute is used to mark a task class as explicitly not being required to run in the STA for COM. /// </summary> [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)] [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "MTA", Justification = "It is cased correctly.")] public sealed class RunInMTAAttribute : Attribute { /// <summary> /// Default constructor. /// </summary> public RunInMTAAttribute() { // do nothing } } }