質問

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