vsSolutionBuildEvent API
vsSolutionBuildEvent provides API layer for external tools and their various environments to access for events/actions and more.
For example, this is already used in the following products:
- CI.MSBuild - for work through msbuild.exe (Microsoft Build Tools)
- Devenv Command-Line - for work through devenv of the Visual Studio
Where to begin
Scheme of vsSolutionBuildEvent projects:
1.14.1+
Please note: Provider now distributed together with Bridge as part of the API layer.
Specified interfaces to communicate with vsSolutionBuildEvent: Bridge/
- Download vsSBE.API.1.4+fe64f7e.SDK17.zip
Before 1.14.1
Bridge
Current module specifies communication with vsSolutionBuildEvent and its related references, for example, IEvent.
- Download vsSBE.API.1.4+fe64f7e.SDK17.zip ~8Kb
- All binaries of the Bridge: /API/Bridge/ (SourceForge)
Provider
Contains loader of the core components and related services. Use this to quickly implement basic logic.
- Download vsSBE.API.1.4+fe64f7e.SDK17.zip ~19Kb
- All binaries of the Bridge: /API/Provider/ (SourceForge)
client.vssbe.dll
client.vssbe.dll this is subset of API layer and its additional way for working with the vsSolutionBuildEvent.
How to use client.vssbe.dll
Either place client.vssbe.dll and Bridge.dll inside %USERPROFILE%\Documents\vsSolutionBuildEvent\
(Settings - Plugin - Open a common directory)
Or place client.vssbe.dll inside plugin directory (Settings - Plugin - Open a directory where plugin)
How to create client.vssbe.dll
From scratch:
- Add Bridge in
References
- Implement IEntryPointClient.
- Provide the correct IEvent2 and IBuild objects.
- Build project. The output assembly name must be client.vssbe.dll
ClientDemo project:
Play with ClientDemo project (Public domain License) as an example of implementing your own logic.