excubo-ag / WebCompiler

Apache License 2.0
149 stars 30 forks source link

dotnet watch example gives error: Cannot find a tool 'webcompiler' #41

Closed mejobloggs closed 3 years ago

mejobloggs commented 3 years ago

When I run dotnet watch tool run webcompiler

I get the error Cannot find a tool in the manifest file that has a command named 'webcompiler'

Scss compiles fine via project file with this:

<Target Name="CompileStaticAssets" AfterTargets="AfterBuild">
    <Exec Command="webcompiler -f files.conf" StandardOutputImportance="high" />
  </Target>

But would like to get dotnet watch working, and don't understand how

stefanloerwald commented 3 years ago

Hi @mejobloggs,

it sounds to me that you installed webcompiler as a global tool, not specific to this project. Try installing it as a local tool too.

Hope that helps, Stefan

mejobloggs commented 3 years ago

Thanks, it seems I needed to install it both global and local