Live Chat Icon For mobile
Live Chat Icon

Is it possible to call macros as part of a Visual Studio.NET command line build (or from a batch file)

Platform: WinForms| Category: Macros

Yes. You just use the following syntax:


devenv.exe {Solution Name} /command {Macro name}

Example:


devenv.exe 'myproject.sln' /command 'Macros.Syncfusion.Utils.FormatProjectAndClose' 

Dev studio will start up, load the solution, run the macro and then terminate.

Be sure to check that devenv.exe is available from your command line. Normally, you just have to run VSVARS32.bat to ensure this if you do not already have this in your path.

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.