Open
Description
To prevent this sort of bug:
dotnet run file.cs
with .net10p6 which is only available locallydotnet run file.cs
where no .net10p6 is available, only .net10p5 is available (e.g., globally)- because
--no-build
implicitly happens in the second step, and it only tries to execute the 10p6-built executable without a 10p6 runtime available, an error occurs "You must install or update .NET to run this application."