Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Task Runner in the .NET stack?

I've seen grunt in the MEANJS stack have a file watcher to automatically execute tasks such as moving around files when they change. Is there anything like this in the .NET space, or am I better off installing node.js and adding grunt to my development stack? I'm really looking to move .js/.css/.cshtml from my code repository to my wwwroot when they're edited and saved.

like image 609
Dylan McCurry Avatar asked Apr 17 '15 23:04

Dylan McCurry


People also ask

What are task runners?

A task runner is an application that polls AWS Data Pipeline for tasks and then performs those tasks.

What is task runner in Visual Studio?

There are many tools that exist to automate parts of your project, including for installing dependencies, building, testing, linting, deploying. This extension adds an additional "Task Runner" view in your Explorer Pane to visualize and individually run the auto-detected tasks in your project.

What is task runner in web development?

Task runners are the heroes (or villains, depending on your point of view) that quietly toil behind most web and mobile applications. Task runners provide value through the automation of numerous development tasks such as concatenating files, spinning up development servers and compiling code.

How do I get a task runner in Visual Studio?

If you have never used or opened the built in task runner it is simple, press Alt + Shift + Backspace or select it from the other windows list from the View menu. You should see the task runner window at the bottom of Visual Studio.


2 Answers

You're better off adding Grunt to your development stack. You can then use the following extensions to add support in Visual Studio: - Task Runner Explorer - NPM and Bower package Intellisense - Grunt Luncher

If you're on Mac you could use CodeKit (not free). But still Grunt is highly recommended for what you're trying to achieve.

You might also want to experience with Web Essentials to watch your CSS/JS

like image 117
Rachid Avatar answered Sep 29 '22 02:09

Rachid


I've seen grunt in the MEANJS stack have a file watcher to automatically execute tasks such as moving around files when they change. Is there anything like this in the .NET space

Yep, FileSystemWatcher in System.IO namespace (MSDN)

like image 33
sac1 Avatar answered Sep 29 '22 03:09

sac1