Skip to content

Runtime version should be part of file-based app cache #49478

Open
@jjonescz

Description

@jjonescz

To prevent this sort of bug:

  1. dotnet run file.cs with .net10p6 which is only available locally
  2. dotnet run file.cs where no .net10p6 is available, only .net10p5 is available (e.g., globally)
  3. 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."

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-run-fileItems related to the "dotnet run <file>" effortuntriagedRequest triage from a team member

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions