1 instantiation of Framework
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
Framework.cs (1)
129return new Framework() { Name = name, ShortName = shortName, FrameworkName = frameworkName, Version = version };
132 references to Framework
Microsoft.TestPlatform.CrossPlatEngine (10)
Client\ProxyDiscoveryManager.cs (1)
106Framework? testhostManagerFramework,
Client\ProxyExecutionManager.cs (2)
108Framework testHostManagerFramework) : 137Framework testHostManagerFramework,
Client\ProxyExecutionManagerWithDataCollection.cs (1)
47Framework testHostManagerFramework,
Client\ProxyOperationManager.cs (3)
67Framework testhostManagerFramework) 89Framework? testhostManagerFramework, 136public Framework? TestHostManagerFramework { get; }
Client\ProxyOperationManagerWithDataCollection.cs (1)
38Framework testHostManagerFramework,
Client\TestLoggerManager.cs (2)
452internal static Framework? GetTargetFramework(string? runSettings) 454Framework? targetFramework = null;
Microsoft.TestPlatform.Extensions.BlameDataCollector (4)
CrashDumperFactory.cs (2)
19var tfm = Framework.FromString(targetFramework);
HangDumperFactory.cs (2)
24var tfm = Framework.FromString(targetFramework);
Microsoft.TestPlatform.TestHostRuntimeProvider (5)
Hosting\DefaultTestHostManager.cs (3)
63private Framework? _targetFramework; 253private static string GetTestHostName(Architecture architecture, Framework targetFramework, PlatformArchitecture processArchitecture) 363var framework = config.TargetFramework;
Hosting\DotnetTestHostManager.cs (2)
79private Framework? _targetFramework; 766var framework = config.TargetFramework;
Microsoft.TestPlatform.Utilities (13)
InferRunSettingsHelper.cs (13)
160public static void UpdateRunSettingsWithUserProvidedSwitches(XmlDocument runSettingsDocument, Architecture architecture, Framework framework, string? resultsDirectory) 182var fwkFromString = Framework.FromString(nodeXml); 590Framework effectiveFramework, 639if (Framework.FromString(xml) != null) 658public static IEnumerable<string> FilterCompatibleSources(Architecture chosenPlatform, Architecture defaultArchitecture, Framework chosenFramework, IDictionary<string, Architecture> sourcePlatforms, IDictionary<string, Framework> sourceFrameworks, out string incompatibleSettingWarning) 668Framework actualFramework = sourceFrameworks[source]; 698Framework sourceFramework, 699Framework targetFramework) 716private static bool IsFrameworkIncompatible(Framework sourceFramework, Framework targetFramework) 718return !sourceFramework.Name.Equals(Framework.DefaultFramework.Name, StringComparison.OrdinalIgnoreCase)
Microsoft.VisualStudio.TestPlatform.Common (5)
DataCollection\DataCollectorInformation.cs (1)
127var frameWork = XmlRunSettingsUtilities.GetRunConfigurationNode(SettingsXml).TargetFramework;
Utilities\FakesUtilities.cs (1)
66var targetFramework = XmlRunSettingsUtilities.GetRunConfigurationNode(runSettingsXml)?.TargetFramework;
Utilities\RunSettingsProviderExtensions.cs (2)
186var framework = Framework.DefaultFramework;
Utilities\RunSettingsUtilities.cs (1)
56public static Framework? GetTargetFramework(RunConfiguration? runConfiguration)
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (1)
HtmlLogger.cs (1)
291framework = Framework.FromString(framework)?.ShortName ?? framework;
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (2)
TrxLogger.cs (2)
506framework = Framework.FromString(framework)?.ShortName ?? framework; 546var shortName = Framework.FromString(framework)?.ShortName ?? framework;
Microsoft.VisualStudio.TestPlatform.ObjectModel (10)
Framework.cs (3)
30public static Framework DefaultFramework { get; } = Framework.FromString(".NETCoreApp,Version=v1.0")!; 58public static Framework? FromString(string? frameworkString)
RunSettings\RunConfiguration.cs (6)
36private Framework? _framework; 80_framework = Framework.DefaultFramework; 253public Framework? TargetFramework 290_framework = Framework.FromString(value.ToString()); 830Framework? frameworkType; 834frameworkType = Framework.FromString(value);
SourceDetail.cs (1)
10public Framework? Framework { get; internal set; }
vstest.console (41)
CommandLine\AssemblyMetadataProvider.cs (2)
37FrameworkName frameworkName = new(Framework.DefaultFramework.Name); 131FrameworkName frameworkName = new(Framework.DefaultFramework.Name);
CommandLine\CommandLineOptions.cs (2)
53private Framework? _frameworkVersion; 227internal Framework? TargetFrameworkVersion
CommandLine\InferHelper.cs (13)
133public Framework AutoDetectFramework(IList<string?>? sources, out IDictionary<string, Framework> sourceToFrameworkMap) 135sourceToFrameworkMap = new Dictionary<string, Framework>(); 138return Framework.DefaultFramework; 140var framework = DetermineFramework(sources, out sourceToFrameworkMap, out var conflictInFxIdentifier); 153private Framework? DetermineFramework(IEnumerable<string?> sources, out IDictionary<string, Framework> sourceToFrameworkMap, out bool conflictInFxIdentifier) 155sourceToFrameworkMap = new Dictionary<string, Framework>(); 157var defaultFramework = Framework.DefaultFramework; 190: new FrameworkName(Framework.DefaultFramework.Name); 194sourceToFrameworkMap.Add(source, Framework.FromString(fx.FullName)!); 224? Framework.FromString(finalFx.FullName)
Internal\ConsoleLogger.cs (1)
225_targetFramework = Framework.FromString(_targetFramework)?.ShortName ?? _targetFramework;
Processors\CLIRunSettingsArgumentProcessor.cs (2)
224Framework? framework = Framework.FromString(value);
Processors\FrameworkArgumentProcessor.cs (4)
106var validFramework = Framework.FromString(argument); 110if (_commandLineOptions.TargetFrameworkVersion != Framework.DefaultFramework 120Framework.DefaultFramework.ToString());
Processors\RunSettingsArgumentProcessor.cs (2)
138Framework? framework = Framework.FromString(framworkStr);
TestPlatformHelpers\TestRequestManager.cs (15)
203out IDictionary<string, Framework> sourceToFrameworkMap)) 321out IDictionary<string, Framework> sourceToFrameworkMap)) 488out IDictionary<string, Framework> sourceToFrameworkMap)) 700out IDictionary<string, Framework> sourceToFrameworkMap) 726out Framework? chosenFramework, 1038Framework chosenFramework, 1042IDictionary<string, Framework> sourceFrameworks, 1115[NotNullWhen(true)] out Framework? commonFramework, 1116out IDictionary<string, Framework> sourceToFrameworkMap) 1126var _ = _inferHelper.AutoDetectFramework(sources, out sourceToFrameworkMap); 1152private static void WriteWarningForNetFramework35IsUnsupported(IBaseTestEventsRegistrar? registrar, Framework? commonFramework) 1322out Framework? chosenFramework) 1331chosenFramework = Framework.FromString(frameworkXml); 1335chosenFramework = Framework.DefaultFramework; 1345chosenFramework = Framework.DefaultFramework;
vstest.console.arm64 (41)
src\vstest\src\vstest.console\CommandLine\AssemblyMetadataProvider.cs (2)
37FrameworkName frameworkName = new(Framework.DefaultFramework.Name); 131FrameworkName frameworkName = new(Framework.DefaultFramework.Name);
src\vstest\src\vstest.console\CommandLine\CommandLineOptions.cs (2)
53private Framework? _frameworkVersion; 227internal Framework? TargetFrameworkVersion
src\vstest\src\vstest.console\CommandLine\InferHelper.cs (13)
133public Framework AutoDetectFramework(IList<string?>? sources, out IDictionary<string, Framework> sourceToFrameworkMap) 135sourceToFrameworkMap = new Dictionary<string, Framework>(); 138return Framework.DefaultFramework; 140var framework = DetermineFramework(sources, out sourceToFrameworkMap, out var conflictInFxIdentifier); 153private Framework? DetermineFramework(IEnumerable<string?> sources, out IDictionary<string, Framework> sourceToFrameworkMap, out bool conflictInFxIdentifier) 155sourceToFrameworkMap = new Dictionary<string, Framework>(); 157var defaultFramework = Framework.DefaultFramework; 190: new FrameworkName(Framework.DefaultFramework.Name); 194sourceToFrameworkMap.Add(source, Framework.FromString(fx.FullName)!); 224? Framework.FromString(finalFx.FullName)
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (1)
225_targetFramework = Framework.FromString(_targetFramework)?.ShortName ?? _targetFramework;
src\vstest\src\vstest.console\Processors\CLIRunSettingsArgumentProcessor.cs (2)
224Framework? framework = Framework.FromString(value);
src\vstest\src\vstest.console\Processors\FrameworkArgumentProcessor.cs (4)
106var validFramework = Framework.FromString(argument); 110if (_commandLineOptions.TargetFrameworkVersion != Framework.DefaultFramework 120Framework.DefaultFramework.ToString());
src\vstest\src\vstest.console\Processors\RunSettingsArgumentProcessor.cs (2)
138Framework? framework = Framework.FromString(framworkStr);
src\vstest\src\vstest.console\TestPlatformHelpers\TestRequestManager.cs (15)
203out IDictionary<string, Framework> sourceToFrameworkMap)) 321out IDictionary<string, Framework> sourceToFrameworkMap)) 488out IDictionary<string, Framework> sourceToFrameworkMap)) 700out IDictionary<string, Framework> sourceToFrameworkMap) 726out Framework? chosenFramework, 1038Framework chosenFramework, 1042IDictionary<string, Framework> sourceFrameworks, 1115[NotNullWhen(true)] out Framework? commonFramework, 1116out IDictionary<string, Framework> sourceToFrameworkMap) 1126var _ = _inferHelper.AutoDetectFramework(sources, out sourceToFrameworkMap); 1152private static void WriteWarningForNetFramework35IsUnsupported(IBaseTestEventsRegistrar? registrar, Framework? commonFramework) 1322out Framework? chosenFramework) 1331chosenFramework = Framework.FromString(frameworkXml); 1335chosenFramework = Framework.DefaultFramework; 1345chosenFramework = Framework.DefaultFramework;