Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Extracting App Container information from VS project using COM interface

$
0
0

Hi,

I am building a VS extension which needs to extract information from the current active project in the solution.

Problem arises when I need to get the information for an "AppContainer" project - project for a Windows Store app.

The information I need is:

  1. Determine if this is actually an AppContainer, or rather an ordinary project (executable).
  2. Extract the AppUserModelID which used to run the application. There must be a way, as VS is using the AppUserModelID (after Deployment) to run/debug the application.

The closest I've got, is the IAppxManifestDesignerService. By calling OpenAppxManifestDocument, I may determine if this is actually an "AppContainer" or not - if the call succeeds or not. But I am not sure if this is the right way, or maybe even the safest way, as there is a "AppContainer" property in the project file, which indicates what is needed. So,how may I query this property?

And this still does not solve the biggest issue:

How do I get the AppUserModelID?

Every help is welcome!







Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>