Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No executable found matching command "dotnet-watch"

Trying to use dotnet watch but gettin an error:

No executable found matching command "dotnet-watch"

dotnet --version
1.0.0-rc4-0004834

Installed .NET Core 1.1 SDK and .NET Core 1.1 runtime

My .csproj file:

 <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore" Version="1.0.3" />
    <PackageReference Include="Microsoft.DotNet.Cli.Utils" Version="1.0.0-rc4-004771" />
    <PackageReference Include="Microsoft.Extensions.CommandLineUtils" Version="1.1.0" />
    <PackageReference Include="Microsoft.Extensions.Logging" Version="1.1.0" />
    <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.0" />
    <PackageReference Include="Microsoft.NETCore.App" Version="1.1.0" />
    <PackageReference Include="Microsoft.DotNet.Watcher.Tools" Version="1.1.0-preview4-final" />
  </ItemGroup>

dotnet restore has done

How can I solve that?

like image 896
Roman Marusyk Avatar asked Feb 17 '17 15:02

Roman Marusyk


1 Answers

Add Microsoft.DotNet.Watcher.Tools to your .csproj as below :

<ItemGroup>
    <DotNetCliToolReference Include="Microsoft.DotNet.Watcher.Tools" Version="1.0.0-msbuild2-final" />
</ItemGroup>

csproj

then excute dotnet restore and dotnet watch run

commandline

like image 88
Duran Hsieh Avatar answered Oct 19 '22 22:10

Duran Hsieh