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

WinRT activation shim for Microsoft.Management.Deployment #4709

Merged
merged 4 commits into from
Aug 7, 2024

Conversation

JohnMcPMS
Copy link
Member

@JohnMcPMS JohnMcPMS commented Aug 6, 2024

Change

Modeled after the similar project for Microsoft.Management.Configuration, this new project enables WinRT standard activation via DllGetActivationFactory and IActivationFactory. The major change required was to add support for multiple classes.

Validation

Manually updated the sample caller to use WinRT style activation for the PackageManager class and verified that placing the (renamed) .dll next to its .exe resulted in a proper functionality.

Microsoft Reviewers: Open in CodeFlow

@JohnMcPMS JohnMcPMS requested a review from a team as a code owner August 6, 2024 22:09
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can probably be deleted

<Configuration>ReleaseStatic</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|ARM64">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have ARM?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't currently ship it in the nuget package this is headed for.

Comment on lines +198 to +199
<TreatWarningAsError Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">true</TreatWarningAsError>
<TreatWarningAsError Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</TreatWarningAsError>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed, but I'd love if you could remove all the conditions to keep a single one

@JohnMcPMS JohnMcPMS merged commit 2306d08 into microsoft:master Aug 7, 2024
9 checks passed
@JohnMcPMS JohnMcPMS deleted the wpm-act-dll branch August 7, 2024 23:39
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

Successfully merging this pull request may close these issues.

2 participants