-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed dotnet resolution for in-process vstest.console scenarios (#4122)
- Loading branch information
1 parent
1bd4467
commit f098763
Showing
7 changed files
with
239 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/Microsoft.TestPlatform.CoreUtilities/Helpers/DotnetMuxerResolutionStrategy.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using System; | ||
|
||
namespace Microsoft.VisualStudio.TestPlatform.CoreUtilities.Helpers; | ||
|
||
/// <summary> | ||
/// An enum representing the dotnet muxer resolution. | ||
/// </summary> | ||
[Flags] | ||
public enum DotnetMuxerResolutionStrategy | ||
{ | ||
/// <summary> | ||
/// Indicates if the muxer resolution process should take dotnet root into account. | ||
/// </summary> | ||
DotnetRootArchitecture = 1, | ||
|
||
/// <summary> | ||
/// Indicates if the muxer resolution process should take arch independent dotnet root into account. | ||
/// </summary> | ||
DotnetRootArchitectureLess = 2, | ||
|
||
/// <summary> | ||
/// Indicates if the muxer resolution process should look in the global installation location. | ||
/// </summary> | ||
GlobalInstallationLocation = 4, | ||
|
||
/// <summary> | ||
/// Indicates if the muxer resolution process should look in the default installation location. | ||
/// </summary> | ||
DefaultInstallationLocation = 8, | ||
|
||
/// <summary> | ||
/// Default muxer resolution strategy. | ||
/// </summary> | ||
Default = DotnetRootArchitecture | DotnetRootArchitectureLess | GlobalInstallationLocation | DefaultInstallationLocation, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.