What's the best way to learn about how to develop macros (syntax, system libraries) in Visual Studio? -



What's the best way to learn about how to develop macros (syntax, system libraries) in Visual Studio? -

i'm working on c# project has post-build event command line looks this:

for /r "$(projectdir)testdata\goldfiles" %%f in ("*.csv") @xcopy "%%f" "r:\root\$(targetname)\1.0\testdata\goldfiles\" /y

this first exposure visual studio macros. can understand plenty know it's doing. want extend macro re-create subdirectories , files. pretty basic stuff. should able figure out myself. thought find , crack open online macro development guilde, or that, can't find guide anywhere.

what's best way larn syntax , development of macros visual studio?

well, there's 2 parts you're doing here in example.

the first $(macrovariable) variables visual studio uses. these substitute in appropriate values it's own settings , settings of project. best way utilize these imo go post-build event editor in project's settings dialog , expand macros list - shows project. that's these.

the sec part after visual studio's performed substitutions, you're left standard batch script executed. there's amount of help online dos batch script syntax , can develop , test these using cmd.exe , editor. figure out visual studio variables want , set them environment variables in cmd before running batch script.

finally, actual visual studio macro vb.net subroutine uses visual studio api perform tasks within environment. can access tools -> macros -> macroside in visual studio.

visual-studio macros

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -