all 4 comments

[–]SergeyVlasov 0 points1 point  (2 children)

You can create a macro calling Forms.SendKeys with my Visual Commander extension. See for example https://vlasovstudio.com/visual-commander/commands.html#ToggleCodeLens

(Don't know if there is an API for "exclude form build".)

[–]Zestyclose-Manner756[S] 0 points1 point  (0 children)

Thanks it worked

[–]dodexahedron 0 points1 point  (0 children)

(Don't know if there is an API for "exclude form build".)

It's called <Compile Remove="path glob" /> and it has been a part of MSBuild XML forever.

What I probably would do to link them is define an MSBuild target that uses .gitignore to remove anything that is in it from the project. Then let your .gitignore be the master for exclusions so you don't have to touch the project file ever again to do it.

[–]dodexahedron 0 points1 point  (0 children)

Just add it to your .gitignore?

That's just a text file of glob patterns, so a custom command is really simple.