BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Introducing Clide, an “Enjoyable Visual Studio Automation API”

Introducing Clide, an “Enjoyable Visual Studio Automation API”

When writing an add-in or extension for Visual Studio developers have traditionally had to choose between EnvDTE and the IVs interfaces. The former is easy to use but limited; the latter exposes all of Visual Studio but contains “a lot of COM baggage”. In an attempt to create library that is both powerful and easy to use Clarius Labs is offering Clide which they call an “Enjoyable Visual Studio Automation API”.

Clide relies on modern .NET API coding styles such as the use of LINQ and extension methods. Here is a sample provided by Daniel Cazzulino that demonstrates finding all of the project names in a solution.

var projects = DevEnv.Get(serviceProvider)
.SolutionExplorer()
.Solution
.Traverse()
.OfType<IProjectNode>()
.Select(project => project.DisplayName)
.ToList();

Clide is offered as an open source project with a custom license. The documentation is available on NuDoq.

Rate this Article

Adoption
Style

BT