microsoft / VSExtensibility

A repo for upcoming changes to extensibility in Visual Studio, the new extensibility model, and language server protocol.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to access current/active Project

LeeMSilver opened this issue · comments

In issue #335 you suggested I install the 'VS Project Query API Browser' (PAB). I did so, but when I tried to open the PAB window I got the following error which I've also posted at https://marketplace.visualstudio.com/items?itemName=vsext.VSProjectQueryAPIBrowser, but without the attached file prob-pq.zip.

Exception details:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Windows.Markup.XamlParseException: The type initializer for 'ProjectQueryAPIBrowser.APIBrowserWindowControl' threw an exception. ---> System.TypeLoadException: Could not load type 'Microsoft.VisualStudio.ProjectSystem.Query.ProjectModel.IProjectModelQueryableSpace' from assembly 'Microsoft.VisualStudio.ProjectSystem.Query, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
at ProjectQueryAPIBrowser.APIBrowserWindowControl..cctor()
--- End of inner exception stack trace ---

Since I can't use PAB on my system at present I have 2 questions:

  1. Nowhere do the screen-shots at the above URL show accessing the current/active Project - something I need to do.

  2. How do I tell if the Project is an SDK-project?