Simpler integration for Microsoft.DotNet.Watcher.Tools

Answered

Hello,

I spent quite a bit of time and effort to integrate the dotnet watcher tool into my projects run settings. I was ultimately able to find a way to accomplish this , but it was not very intuitive (screenshot summarizing my settings included) and felt more like a hack than an option.

I feel that it would be a very positive addition to include a simple method to accomplish this.

Otherwise, thank you for an excellent cross-platform product!

7 comments
Comment actions Permalink

Hi! I've created a feature request for this, please feel free to vote to increase the priority.

0
Comment actions Permalink

I am trying to set it up on Windows but without success...

It''s running now, but not as debug session but as standard run...

0
Comment actions Permalink

@Marekurbanowicz - It looks like the commands you have provided were ‘relative’, so it is attempting to launch the command from Program Files. You likely need to give absolute paths to your project. Having said that, I only did this for one project on a Mac and have since been on a different project. Can’t promise what I did will cross over to Windows after the update. I don’t see why it wouldn’t, but I’ve not tested to confirm.

0
Comment actions Permalink

To anyone trying to set this up on windows this configuration should work for any project since it runs it from the project file directory. I'm using version 2.1.4 of the dotnet CLI.

0
Comment actions Permalink

It would be nice to have an option to attach debugger to running `dotnet watch run` task. Now i'm switching between two configurations. Default one for debugging and second one for continuous building without debugging.

0
Comment actions Permalink

Does anyone know how to add environmental variables to this?

0

Please sign in to leave a comment.