Pergunta

Is it possible to use the EnvDTE assembly in a non-extension project (e.g. a Class Library project)?

If so, how would I access the ConfigurationManager.ActiveConfiguration property?

This question answers exactly what I want, but I couldn't get the dte object that it uses.

Foi útil?

Solução

EnvDTE only works from within Visual Studio, if that's what you mean.

However, you can control Visual Studio programmatically (using COM monikers you can access to a given Visual Studio instance remotely). Check these blog posts here: How to start Visual Studio programmatically and How to get DTE from Visual Studio process ID?

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top