In the solution explorer, right-click on the batch file (in this case I named it BatchFile.cmd) and select "Properties"
In the properties window, change:
Build Action: Content
Enable on VSIX: True
When the solution is built in release mode, it creates a VSIX file in the bin / Release folder. This is a package and contains all the necessary assets. When the package is installed on another computer, the package file enters the installation location and can be specified using:
Path.GetDirectoryName (Assembly.GetExecutingAssembly (). Location) + "BatchFile.cmd"
Graff source share