Replies: 1 comment 1 reply
-
If you're happy with a combined string value like var manager = await VS.GetServiceAsync<SVsSolutionBuildManager, IVsSolutionBuildManager>();
var project = await VS.Solutions.GetActiveProjectAsync();
project.GetItemInfo(out var hierarchy, out _, out _);
IVsProjectCfg[] configs = new IVsProjectCfg[1];
ErrorHandler.ThrowOnFailure(manager.FindActiveProjectCfg(IntPtr.Zero, IntPtr.Zero, hierarchy, configs));
configs[0].getCanonicalName(out string name);
Debug.WriteLine(name); // Writes "Debug|AnyCPU" or "Release|x64", etc. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Looking to get these currently selected values. Usually you'd go through the DTE > Solution > SolutionBuild > ActiveConfiguration. Can anyone help in pointing me towards how to get this through the
VS
static class, or other way, without the DTEBeta Was this translation helpful? Give feedback.
All reactions