excubo-ag / WebCompiler

Apache License 2.0
148 stars 29 forks source link

Is there a way to automate "dotnet watch tool run webcompiler" on solution open? #43

Closed mejobloggs closed 3 years ago

mejobloggs commented 3 years ago

Apologies if this is not a good way to ask questions, I'm not familiar with GitHub.

It seems to watch for changes I should run "dotnet watch tool run webcompiler" in a cmd window in the project directory?

Is there a way to automate this when I open the project?

Based on your handy tips in the readme, I have scss compiling on build with this:

  <Target Name="CompileStaticAssets" AfterTargets="AfterBuild">
    <Exec Command="webcompiler -r wwwroot" StandardOutputImportance="high" />
  </Target>

I'd like to take it further and have the solution/project automatically compile scss on save without needing to manually open a cmd window and run dotnet watch.

Thank you very much for this extension

stefanloerwald commented 3 years ago

I think this kind of question is better to be asked on Stackoverflow or similar platforms. I don't have experience with dotnet watch, so can't help with this, sorry!