MSBuildCollection.cs 918 B

1234567891011121314151617181920212223
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. namespace Microsoft.NET.Build.Containers.IntegrationTests;
  4. using Xunit;
  5. /// <summary>
  6. /// Collection definition for tests that require MSBuild to be run.
  7. /// </summary>
  8. /// <remarks>
  9. /// This collection is used to ensure that tests that require MSBuild are run serially.
  10. /// The MSBuild engine only allows a single logical Build to run at once, so running tests
  11. /// that require MSBuild in parallel can cause tests to fail./
  12. /// </remarks>
  13. [CollectionDefinition(nameof(MSBuildCollection), DisableParallelization = true)]
  14. public class MSBuildCollection : ICollectionFixture<MSBuildCollection>
  15. {
  16. // This class has no code, and is never created. Its purpose is simply
  17. // to be the place to apply [CollectionDefinition] and all the
  18. // ICollectionFixture<> interfaces.
  19. }