Running a task on the .NET stack?

I've seen grumbling on the MEANJS stack has a file watcher to automatically perform tasks such as moving files when they change. Is there anything similar in .NET space, or am I better off installing node.js and adding grunt to my development stack? I really want to move .js / .css / .cshtml from my code repository to my wwwroot when they are edited and saved.

+6
source share
2 answers

You better add Grunt to the development stack. Then you can use the following extensions to add support to Visual Studio: - Task Launcher - NPM and Bower Intellisense - Grunt Luncher

If you are on a Mac, you can use CodeKit (not free). But still, Grunt is highly recommended for what you are trying to achieve.

You may also need Web Essentials to view your CSS / JS.

+2
source

I've seen grumbling on the MEANJS stack has a file watcher to automatically perform tasks such as moving files when they change. Is there something similar in the .NET space.

Yep, FileSystemWatcher in the System.IO namespace (MSDN)

+1
source

Source: https://habr.com/ru/post/985390/


All Articles