Skip to content

install-dotnet-preview.sh should install 10.0.0-rc.1 instead of 10.0.0-preview.2 #635

@danielstreba

Description

@danielstreba

install-dotnet-preview.sh should install 10.0.0-rc.1 instead of 10.0.0-preview.2

Visual Studio 2026 Insiders downloads this script as the part of the ".NET Debugging with WSL" component (Microsoft.VisualStudio.WslDebugging) and installs .NET 10 in the user's WSL2 distro if it doesn't have .NET 10 installed.

Since VS2026 ships with RC1, I think this script should install RC1 as well, since it can cause errors like this, where the script installed 10.0.0-preview.2.25163.2, but Visual Studio compiled the application to 10.0.0-rc.1.25451.107

------------------------------------------------------------------------------
You may only use the Microsoft Visual Studio .NET/C/C++ Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software to help you
develop and test your applications.
------------------------------------------------------------------------------
You must install or update .NET to run this application.

App: /mnt/.../WebApplication1/WebApplication1/bin/Debug/net10.0/WebApplication1.dll
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '10.0.0-rc.1.25451.107' (x64)
.NET location: /usr/share/dotnet/

The following frameworks were found:
  10.0.0-preview.2.25163.2 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Learn more:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=10.0.0-rc.1.25451.107&arch=x64&rid=linux-x64&os=ubuntu.24.04
The program 'dotnet' has exited with code 150 (0x96).

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationneeds-pm-discussionPM discussion is needed

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions