Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package-level extension #59

Open
hongtao-chen opened this issue Feb 13, 2018 · 11 comments
Open

package-level extension #59

hongtao-chen opened this issue Feb 13, 2018 · 11 comments

Comments

@hongtao-chen
Copy link

hongtao-chen commented Feb 13, 2018

In the WinformAppService example, the README.MD mentioned that:

"This component gets activated out-of-proc to the main application process, so we also need to declare a package-level extension to explain to the system how the class will get activated."

But I can't find more detail about the package level extension.

Also notice that the vcxproj file missing the Package.StoreAssociation.xml, is that related?

@wickste
Copy link
Member

wickste commented Feb 14, 2018 via email

@hongtao-chen
Copy link
Author

hongtao-chen commented Feb 14, 2018

It's not there. I tried to follow the Win Form App Service, but, in appx manifest xml, no package level extension created for my runtime component.

@wickste
Copy link
Member

wickste commented Feb 14, 2018 via email

@hongtao-chen
Copy link
Author

Thanks a lot, I put my POC in the one drive. https://1drv.ms/u/s!Ar4lO2gIHPQZsz3j2HTXbioHFFBq

I can build and deploy it. But no package level extension created in manifest xml, and when the win form app tries to connect to the app service. it fails with app unavailable.

@wickste
Copy link
Member

wickste commented Feb 15, 2018 via email

@hongtao-chen
Copy link
Author

Thanks a lot, that helps. Now I see the extension session in the generated manifest xml file. But when the winform UI try to connect to it, I still get App unavailable error. Is there something I still missed?

@wickste
Copy link
Member

wickste commented Feb 16, 2018 via email

@hongtao-chen
Copy link
Author

The UI is the winform app still, I try to use it to connect to some features that converted to UWP runtime already. The Cpp project there is just a package project for now, business logic will be in the C# library. Because the project designed in the way that the winform app and UWP communicate with app service only, I cannot call the library directly from the winform app.

@hongtao-chen
Copy link
Author

Still blocked by the application is not available problem, any idea?

@wickste
Copy link
Member

wickste commented Mar 24, 2018 via email

@hongtao-chen
Copy link
Author

Here is the updated example: https://1drv.ms/u/s!Ar4lO2gIHPQZs0474Vn6MRKoSYy-

When I click the button, I still get the service unavailable error.

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants