hesxenon
hesxenon

Reputation: 520

dotnet watch - no frameworks found

coming back to .NET after a little more than a decade for F# and I'm having trouble running a very basic hello world app with dotnet watch.

Basically dotnet run starts the app as expected but dotnet watch fails with "no frameworks were found". Even dotnet watch --help fails with this error.

I'm on linux and have .net6.0 and .net7.0 installed.

EDIT1: output of dotnet --info

.NET SDK:
 Version:   7.0.100
 Commit:    e12b7af219

Runtime Environment:
 OS Name:     endeavouros
 OS Version:  
 OS Platform: Linux
 RID:         arch-x64
 Base Path:   /usr/share/dotnet/sdk/7.0.100/

Host:
  Version:      7.0.0
  Architecture: x64
  Commit:       d099f075e4

.NET SDKs installed:
  6.0.111 [/usr/share/dotnet/sdk]
  7.0.100 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.NETCore.App 6.0.11 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  DOTNET_ROOT       [/usr/share/dotnet]

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

Upvotes: 4

Views: 4531

Answers (1)

hesxenon
hesxenon

Reputation: 520

solution found in recent github issue: install aspnet-runtime.

dotnet --list-runtimes should include "Microsoft.AspNetCore.App" which is mentioned in the original error message.

Upvotes: 2

Related Questions