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

Hope to provide Microsoft.Management.Deployment.Projection.dll for .NET 6+ #4094

Closed
Gaoyifei1011 opened this issue Jan 24, 2024 · 5 comments
Closed
Labels
Area-COM-API Issue related to COM API Issue-Feature This is a feature request for the Windows Package Manager client.
Milestone

Comments

@Gaoyifei1011
Copy link

Brief description of your issue

Hope to provide Microsoft.Management.Deployment.Projection.dll for .NET 6+

At present, the Windows app SDK generates C# WinRT's Projection .dll for projects on the .NET 6+ platform, but Winget does not generate a corresponding Projection .dll for the .NET 6+ platform, and hopes to provide a Projection.dll nuget package for .NET 6+ platforms to call in the future

Steps to reproduce

None

Expected behavior

Provide Microsoft.Management.Deployment.Projection.dll in nuget packages for .Net6+ platforms

Actual behavior

None Microsoft.Management.Deployment.Projection.dll in nuget packages

Environment

None
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Jan 24, 2024
@stephengillie stephengillie added Issue-Feature This is a feature request for the Windows Package Manager client. and removed Needs-Triage Issue need to be triaged labels Jan 24, 2024
@denelon denelon added the Area-COM-API Issue related to COM API label Mar 7, 2024
@denelon
Copy link
Contributor

denelon commented Mar 21, 2024

Hey @Gaoyifei1011 I think we're looking to provide a C# sample for leveraging the COM API. Would that address the concern here? I'm pretty sure it would require us to figure out how to generate the projection or some other suitable solution.

@denelon
Copy link
Contributor

denelon commented Mar 21, 2024

Thanks @marticliment for cross linking the issue at WinGetUI.

@marticliment
Copy link

marticliment commented Mar 25, 2024

I have built a minimal working example that uses WinGet APIs through C#:
https://github.com/marticliment/WinGet-API-from-CSharp

The README file has all the information needed on how to use the example

It should work on Windows 10 and 11. The example has been tested with NET8, but the project should be downgradable to NET6 and 7.

@Gaoyifei1011
Copy link
Author

Hey @Gaoyifei1011 I think we're looking to provide a C# sample for leveraging the COM API. Would that address the concern here? I'm pretty sure it would require us to figure out how to generate the projection or some other suitable solution.

https://github.com/Gaoyifei1011/GetStoreApp/blob/main/Microsoft.Management.Deployment.Projection/Microsoft.Management.Deployment.Projection.csproj

Thanks @marticliment for cross linking the issue at WinGetUI.

I'm sorry for not seeing your reply in time for some reason. I tried in my personal project to create a blank csproj project and generate Microsoft. Management Deployment. The Projection. DLL for my personal use, you can also create a blank project is used to generate the Projection.dll
很抱歉,由于某些原因,没有及时看到您的回复。我尝试在我个人的项目中创建了一个空白的 csproj 项目并生成 Microsoft.Management.Deployment.Projection.dll 供我个人使用,您也可以创建一个空白项目用于生成 Projection.dll

https://github.com/Gaoyifei1011/GetStoreApp/blob/main/Microsoft.Management.Deployment.Projection/Microsoft.Management.Deployment.Projection.csproj

由于一些特殊原因,需要在 Projection.dll 中添加一个不基于内置 COM 支持能够调用的 IDataTransferManagerInterop 接口调用,这个接口的方法已经合并到 CsWinRT Staging/AOT 分支中,CsWinRT 发布新版本支持 AOT 时,该方法将会删除

Due to some special reasons, need to be in the Projection. Add a DLL is not based on built-in COM support can call IDataTransferManagerInterop interface call, The methods of this interface have been merged into the CsWinRT Staging/AOT branch and will be removed when CsWinRT releases a new version supporting AOT

@Gaoyifei1011
Copy link
Author

Brief description of your issue

Hope to provide Microsoft.Management.Deployment.Projection.dll for .NET 6+

At present, the Windows app SDK generates C# WinRT's Projection .dll for projects on the .NET 6+ platform, but Winget does not generate a corresponding Projection .dll for the .NET 6+ platform, and hopes to provide a Projection.dll nuget package for .NET 6+ platforms to call in the future

Steps to reproduce

None

Expected behavior

Provide Microsoft.Management.Deployment.Projection.dll in nuget packages for .Net6+ platforms

Actual behavior

None Microsoft.Management.Deployment.Projection.dll in nuget packages

Environment

None

The CsWinRT projection dll is already included in the new version of the nuget package, so the issue will be closed soon

新版本的 nuget 包中已经包含了 CsWinRT projection dll,所以该 issue 即将关闭

@denelon denelon added this to the 1.10 Client milestone Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-COM-API Issue related to COM API Issue-Feature This is a feature request for the Windows Package Manager client.
Projects
None yet
Development

No branches or pull requests

4 participants