문제

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.

도움이 되었습니까?

해결책

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?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top