You are not logged in.

#1 2021-03-17 22:29:14

lights0123
Member
Registered: 2021-03-17
Posts: 3

dotnet watch missing with upgrade to .NET 5

With the recent upgrade to .NET 5, dotnet --help outputs:

.NET SDK (5.0.104)
...
Additional commands from bundled tools:
  dev-certs         Create and manage development certificates.
  fsi               Start F# Interactive / execute F# scripts.
  sql-cache         SQL Server cache command-line tools.
  user-secrets      Manage development user secrets.
  watch             Start a file watcher that runs a command when files change.

Trying one of those commands, however, outputs:

❱ dotnet watch       
Cannot find command 'dotnet watch', run the following command to install

dotnet tool install --global dotnet-watch

It worked before when Arch provided .NET 3.1 by default. Trying the suggestion there doesn't work because that's an old .NET Core 2 thing.

System info:

❱ pacman -Q | grep -E 'dotnet|aspnet' 
aspnet-runtime 5.0.4.sdk104-1
dotnet-host 5.0.4.sdk104-1
dotnet-runtime 5.0.4.sdk104-1
dotnet-sdk 5.0.4.sdk104-1
dotnet-targeting-pack 5.0.4.sdk104-1

❱ dotnet --info 
.NET SDK (reflecting any global.json):
 Version:   5.0.104
 Commit:    ca6b6acadb

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

Host (useful for support):
  Version: 5.0.4
  Commit:  269e323b5f

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

.NET runtimes installed:
  Microsoft.AspNetCore.App 5.0.4 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 5.0.4 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Offline

#2 2021-03-24 07:13:03

Felix443
Member
Registered: 2021-03-24
Posts: 1

Re: dotnet watch missing with upgrade to .NET 5

Upvote this, did you find any solution?

edit:

just use aur version 5.0.4.sdk201-1 instead of  5.0.4.sdk104-1

Last edited by Felix443 (2021-03-24 07:16:46)

Offline

Board footer

Powered by FluxBB