-
Notifications
You must be signed in to change notification settings - Fork 79
[Experiment] AppServices library #438
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
Conversation
|
@Youssef1313 new generator in town! 😄 |
components/AppServices/CommunityToolkit.AppServices.SourceGenerators/AppServiceGenerator.cs
Show resolved
Hide resolved
...olkit.AppServices.SourceGenerators/Diagnostics/Analyzers/InvalidAppServicesMemberAnalyzer.cs
Outdated
Show resolved
Hide resolved
....SourceGenerators/Diagnostics/Suppressors/SynchronousAppServiceMethodDiagnosticSuppressor.cs
Show resolved
Hide resolved
...nents/AppServices/CommunityToolkit.AppServices.SourceGenerators/Extensions/EnumExtensions.cs
Show resolved
Hide resolved
...nents/AppServices/CommunityToolkit.AppServices.SourceGenerators/Helpers/EquatableArray{T}.cs
Show resolved
Hide resolved
...olkit.AppServices.SourceGenerators/Diagnostics/Analyzers/InvalidAppServicesMemberAnalyzer.cs
Outdated
Show resolved
Hide resolved
...t.AppServices.SourceGenerators/Diagnostics/Analyzers/InvalidValueSetSerializerUseAnalyzer.cs
Show resolved
Hide resolved
...t.AppServices.SourceGenerators/Diagnostics/Analyzers/InvalidValueSetSerializerUseAnalyzer.cs
Show resolved
Hide resolved
components/AppServices/CommunityToolkit.AppServices.SourceGenerators/AppServiceGenerator.cs
Show resolved
Hide resolved
|
@Arlodotexe I think your infra is injecting extra dependencies into packages, look at this: I'm not WinUI nor the |
|
@Arlodotexe can't build the project anymore, I get this: This SDK is super old and it doesn't even show up as an option in the VS installer anymore. |
Can you supply more info? Which project is emitting this error exactly? What do you mean by "just the tooling"? |
|
I'm getting this when building |
|
Seems that removing WinUI may have caused this, but our Since 17763 is the min version for the entire toolkit, for now I recommend installing this SDK to build AppServices. Investigation to continue in another ticket. |




Closes #301
CommunityToolkit.AppServices
A library and accompanying source generator to make working with AppService much easier 🚀
Simply define an interface:
Then implement it in your desktop extension:
That's it! The source generator will automatically create for you:
That means, the host UWP can literally just do this:
This enables a fundamentally easier, less error prone and much less verbose way to interact with
AppServiceAPIs 🚀We developed this library for the Microsoft Store, which uses it for all the desktop extension functionaly, and would like to open source it and add it to the Windows Community Toolkit, so that it can benefit all developers using UWP and WinUI 3. This can be used both to support UWP applications needing a desktop extension component to escape the sandbox (like the Microsoft Store is doing), as well as both UWP and WInUI 3 apps using
AppServiceto connect to other applications registered as extensions.Additional features
The library comes bundled with:
IProgress<T>values across processesCancellationTokenvalues across processesAPI breakdown