[MonoDevelop] How to get project ActiveConfiguration from CustomTool?

xplicit svg at ngs.ru
Sat Jan 3 17:10:27 UTC 2015


I am finding a proper way to get project ActiveConfiguration from CustomTool.

ISingleFileCustomTool interface has a Generate member which takes
'ProjectFile file' parameter. I tried to use
'file.Project.DefaultConfiguration', but it always returns first
configuration item which is 'Debug'. Is it expected behaviour? Also I saw in
sources that MSBuildCustomTool calls 'IdeApp.Workspace.ActiveConfiguration'
property to get active configuration. 

What is the preffered way to get project active configuration inside the
custom tool? 



--
View this message in context: http://mono.1490590.n4.nabble.com/How-to-get-project-ActiveConfiguration-from-CustomTool-tp4665087.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.


More information about the Monodevelop-list mailing list