简体   繁体   English

在 Visual Studio 调试开始之前自动运行命令

[英]Automatically run Command before visual studio debug start

I am developing a web application in asp core 3.1.我正在 asp core 3.1 中开发一个 web 应用程序。 and I am using react js in the project with server-side rendering.我在项目中使用带有服务器端渲染的 react js。

But every time I di some changes in my react code.但是每次我对我的反应代码进行一些更改。 I have to rebuild the project manually by running this comment我必须通过运行此评论手动重建项目

npm run-script build

Is there any way.有没有什么办法。 I can make put this command at automation.我可以使这个命令自动化。

So then I go for debugging.于是我用go进行调试。 Does visual studio automatically run this command before starting the debugging process? Visual Studio 是否会在开始调试过程之前自动运行此命令?

Thanks in advance提前致谢

You can use project Build Events .您可以使用项目Build Events Right click on the project, select Properties -> Build Events and enter your script into Pre-build event右键单击项目,select Properties -> Build Events并在Pre-build event输入您的脚本

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 运行命令提示符命令以在Visual Studio中启动解决方案 - run a command prompt command to start a solution in Visual Studio 如何在 Visual Studio 调试中以管理员身份运行应用程序? - How to run application as administrator in debug with Visual Studio? Visual Studio 2017,无法调试或运行该应用程序 - Visual Studio 2017, cannot debug or run the application Visual Studio是否可以在调试模式下自动对对象的副本进行硬编码? - can visual studio automatically hardcode a copy of the object in debug mode? 使用除root以外的URL启动Visual Studio调试会话 - Start Visual Studio debug session with a url other than root 调试->在Visual Studio中启动外部程序的用途是什么 - What is the usage of Debug -> Start external program in Visual Studio 如何从Visual Studio运行Grunt命令? - How to run Grunt command from Visual Studio? Visual Studio:在Breakpoint上,在其他程序实例中启动调试 - Visual Studio: On Breakpoint, start debug in other program instance 在Visual Studio中为C#命令行应用程序调用调试会话 - Invoke debug session for C# command line application in Visual Studio 如何在Visual Studio中以调试模式运行NUnit? - How to run NUnit in debug mode from Visual Studio?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM