89776

How to get current solution configuration in vspackage?

Question:

I'm making Visual Studio package, and i need to know opened solution name and configuration. How can i get this information ?

Thanks

Answer1:

If you have a reference to EnvDTE, you can use dte.Solution and dte.Solution.SolutionBuild.ActiveConfiguration.

Recommend

  • What does the lower left pane in OllyDbg displays?
  • How do I install a previous version of build tools in addition to the sdk?
  • Weighted round robin dns between 2 Cloudfront distributions
  • What dll is needed for Windows.Devices.Geolocation?
  • not able to create VC++ project, with VS11
  • Python Paramiko send CTRL+C to an ssh shell
  • How to format code on aptana 3?
  • Visual studio 2015 keystroke with mouse button
  • Entity Framework unable to delete database, database in use
  • Upgrade project from WorkLight 6.1 to MobileFirst 7.1
  • TFS - how do I sum child task hours to parent
  • Deploying a CodeRush plugin from the Community Site
  • Vuejs: Lifecycle hooks of child routerview components using keep alive
  • How to pass solution folder as parameter in command line arguments (for debug)?
  • jQuery: add elements until a particular height is reached
  • uml Composition relationships to RDF and OWL
  • Is there some graphical way to create my own configuration file on SonarLint?
  • Spring: No transaction manager has been configured
  • Azure table store snapshot/backup capability
  • ASP.NET MVC 2 Preview 2 - display directory list rather than home/index
  • where do I find the xml.dom python package for the python-2.6.0-8.9.28 and I have a suse/x86_64 vers
  • Spring boot 2.0.0.M4 required a bean named 'entityManagerFactory' that could not be found
  • Read text file that is not in the main package in a runnable jar
  • Roxygen error “Skipping invalid path”
  • Spring Cloud Microservice Architecture Confusion
  • xtable package: Skipping some rows in the output
  • How to use an array of arrays with array_map(…) in PHP?
  • All Classes Conforming to Protocol Inherit Default Implementation
  • Is there a javascript serializer for JSON.Net?
  • How can I send an e-mail from a vbs script
  • Change JButton Shape while respecting Look And Feel
  • Javascript simulate pressing enter in input box
  • Read text file and split every line in MSBuild
  • Fetching methods from BroadcastReceiver to update UI
  • Excel - Autoshape get it's name from cell (value)
  • Check if a string to interpolate provides expected placeholders
  • RestKit - RKRequestDelegate does not exist
  • Is there a mandatory requirement to switch app.yaml?
  • Traverse Array and Display in markup
  • UserPrincipal.Current returns apppool on IIS