Automatically start a script when a solution is (pre)opened in Visual Studio

  Kiến thức lập trình

I have a solution with several projects inside and a script which should do some maintaining tasks whenever I open the solution in VS. The issue is that often I forget to run it manually, so I thought there could be a way to do it this automatically. The script is in the the solution’s directory, but the issue is that the directory itself might vary, so it is not an option to create a batch file which to start both VS and the script. I’ve heard that a custom extension to VS could do the trick but I have no knowledge there. The version of Visual Studio I use (if that’s matter) is Professional 2019. Thanks!

LEAVE A COMMENT