Skip to content

vstest.console.dll does not exists after upgrading VS 2022 Enterprise from Version 17.14.0 Preview 2.0 to Preview 3.0 #15053

Open
@fmaeseele

Description

@fmaeseele

After upgrading from Visual Studio 2022 Enterprise from Version 17.14.0 Preview 2.0 to 3.0, I cannot run my VS Tests with the Ubuntu environment. When I look at the console I can see this:

========== Starting test discovery ==========
StreamJsonRpc.RemoteInvocationException: File /mnt/c/program files/microsoft visual studio/2022/preview/common7/ide/commonextensions/microsoft/testwindow/VsTest/vstest.console.dll does not exists
at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList1 arguments, IReadOnlyList1 positionalArgumentDeclaredTypes, IReadOnlyDictionary2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject) at Microsoft.VisualStudio.TestWindow.Host.TestPlatformProvider.DiscoverTestsAsync(DiscoverTestsRequest request, VsTestRunSession runSession, ImmutableDictionary2 discoverSettingsMap, ImmutableArray1 containersToDiscover, IEnumerable1 activeEnvironments, CancellationToken cancellationToken)
RPC server exception:
System.Exception: File /mnt/c/program files/microsoft visual studio/2022/preview/common7/ide/commonextensions/microsoft/testwindow/VsTest/vstest.console.dll does not exists
at Microsoft.TestPlatform.VsTestConsole.TranslationLayer.VsTestConsoleProcessManager..ctor(String vstestConsolePath) in //src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/VsTestConsoleProcessManager.cs:line 76
at Microsoft.TestPlatform.VsTestConsole.TranslationLayer.VsTestConsoleWrapper..ctor(String vstestConsolePath, ConsoleParameters consoleParameters) in /
/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/VsTestConsoleWrapper.cs:line 82
at Microsoft.VisualStudio.TestWindow.Messaging.RemoteAgent.TestRunController.VsTestRunController.Create(String testConsolePath, InitializeCapabilitiesRequest clientCapabilities, IDictionary2 environment, Boolean inheritEnvironmentVariables, ITestRunDataSink dataSink, IInternalLogger logger) in D:\a\_work\1\s\src\TestWindow\Internal\RemoteAgent\TestAgentBridge\TestRunController.VsTestConsoleRunner.cs:line 92 at Microsoft.VisualStudio.TestWindow.Messaging.RemoteAgent.TestRunController.CreateVsTestRunController(ITestRunDataSink dataSink) in D:\a\_work\1\s\src\TestWindow\Internal\RemoteAgent\TestAgentBridge\TestRunController.cs:line 138 at Microsoft.VisualStudio.TestWindow.Messaging.RemoteAgent.TestRunController.<>c__DisplayClass21_0.<Initialize>b__0() in D:\a\_work\1\s\src\TestWindow\Internal\RemoteAgent\TestAgentBridge\TestRunController.cs:line 132 at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy1.CreateValue()
at Microsoft.VisualStudio.TestWindow.Messaging.RemoteAgent.TestRunController.GetRunnerForLauncher(String launcherType, RunSettingsInfo runSettingsInfo) in D:\a_work\1\s\src\TestWindow\Internal\RemoteAgent\TestAgentBridge\TestRunController.cs:line 184
at Microsoft.VisualStudio.TestWindow.Messaging.RemoteAgent.TestRunController.DiscoverTestsAsync(IEnumerable1 sources, String launcherType, String launcherConfiguration, RunSettingsInfo runSettings, RemoteTestPlatformOptions options, ITestRunDataSink dataSink, CancellationToken cancellationToken) in D:\a\_work\1\s\src\TestWindow\Internal\RemoteAgent\TestAgentBridge\TestRunController.cs:line 253 at Microsoft.VisualStudio.TestWindow.Messaging.RemoteAgent.BaseTestAgentBridge.DiscoverTestsAsync(IEnumerable1 sources, String launcherType, String launcherConfiguration, String discoverySettings, RemoteTestPlatformOptions options, CancellationToken cancellationToken) in D:\a_work\1\s\src\TestWindow\Internal\RemoteAgent\TestAgentBridge\BaseTestAgentBridge.cs:line 117

========== Test discovery aborted: 0 Tests found in 419,5 ms ==========

But I still can run my tests with the default environment (ie Windows).

Here is my testEnvironment.json file:

{
"version": "1",
"environments": [
// See https://aka.ms/remotetesting for more details
// about how to configure remote environments.
{
"name": "WSL Ubuntu-24.04",
"type": "wsl",
"wslDistribution": "Ubuntu"
},
{
"name": "Red Hat Enterprise Linux 8.10",
"type": "wsl",
"wslDistribution": "rhel8wsl"
}
]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions