dotnet-run-script icon indicating copy to clipboard operation
dotnet-run-script copied to clipboard

Projects using .Net 9 don't seem to work with this tool.

Open jswwt opened this issue 5 months ago • 0 comments

Trying to run any script from the root of my repo gives me the following error, which I assume is because the tool needs .Net 8 to run and I only have .Net 9 available since that's what my main and test projects target. Is there a way around this issue?

You must install or update .NET to run this application.

App: /Users/[username]/.nuget/packages/run-script/0.6.0/tools/net8.0/any/run-script.dll
Architecture: arm64
Framework: 'Microsoft.NETCore.App', version '8.0.0' (arm64)
.NET location: /usr/local/share/dotnet/

The following frameworks were found:
  9.0.3 at [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  9.0.5 at [/usr/local/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=8.0.0&arch=arm64&rid=osx-arm64&os=osx.15

jswwt avatar May 29 '25 18:05 jswwt