Asp.net core 在Visual Studio内启动web应用程序时运行gulp任务
我在Visual Studio 2019中打开了ASP.NET核心网站。在这里,我有一个gulptaskAsp.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": {
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
您可以根据需要选择绑定步骤我的做法不对,打开解决方案对我来说就足够了。谢谢