Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net core 在Visual Studio内启动web应用程序时运行gulp任务_Asp.net Core_.net Core_Gulp_Asp.net Core Mvc_Visual Studio 2019 - Fatal编程技术网

Asp.net core 在Visual Studio内启动web应用程序时运行gulp任务

Asp.net core 在Visual Studio内启动web应用程序时运行gulp任务,asp.net-core,.net-core,gulp,asp.net-core-mvc,visual-studio-2019,Asp.net Core,.net Core,Gulp,Asp.net Core Mvc,Visual Studio 2019,我在Visual Studio 2019中打开了ASP.NET核心网站。在这里,我有一个gulptaskwatch,它运行BrowserSync,将wwwroot更改直接同步到浏览器。现在我必须从TaskRunner资源管理器运行watch任务,然后用CTRL+F5启动网站,我经常忘记这样做 启动应用程序时,是否有办法运行gulpwatch?如果它也能以IIS Express进程结束,那就太好了。我想可能是这样的 "profiles": { "IIS Express": {

我在Visual Studio 2019中打开了ASP.NET核心网站。在这里,我有一个gulptask
watch
,它运行BrowserSync,将wwwroot更改直接同步到浏览器。现在我必须从TaskRunner资源管理器运行watch任务,然后用CTRL+F5启动网站,我经常忘记这样做

启动应用程序时,是否有办法运行
gulpwatch
?如果它也能以IIS Express进程结束,那就太好了。我想可能是这样的

"profiles": {
    "IIS Express": {
      "commandName": "gulp watch & IISExpress", // (doesn't work)
      "launchBrowser": true,
      "launchUrl": "https://localhost:3000",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    },
}
你可以用它

任务运行器资源管理器proivide 4绑定步骤

Before Build

After Build

Clean

Solution Open

您可以根据需要选择绑定步骤

我的做法不对,打开解决方案对我来说就足够了。谢谢