[MonoDevelop] How to get project ActiveConfiguration from CustomTool?
Michael Hutchinson
m.j.hutchinson at gmail.com
Thu Jan 8 16:58:02 UTC 2015
project.GetConfiguration(IdeApp.Workspace.ActiveConfiguration)
This will get the project configuration that the solution configuration maps to.
On 3 January 2015 at 12:10, xplicit <svg at ngs.ru> wrote:
> 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.
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
--
Michael Hutchinson ~ https://mhut.ch
More information about the Monodevelop-list
mailing list