c# – How to make Visual Studio launch a powershell/bat script when starting asp.net webform app without debugging?


The example in MS docs shows how to do it with console app and makefile.

https://learn.microsoft.com/en-us/visualstudio/ide/customize-build-and-debug-tasks-in-visual-studio?view=vs-2022#define-tasks-with-tasksvsjson

My project is a asp.net webforms application and I would like to be able to manipulate the behavior of the browser via batch or ps script. I do not want to get a makefile involved because I am not trying to configure a custom build. I do not want the task to run before or after a build. I want it to run when the application starts which I don’t think is quite the same as a post-build task. Any suggestions on how I should go about this would be greatly appreciated.

Leave a Reply

Your email address will not be published. Required fields are marked *