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

C++/WinRT based projects (app or module) are unable to consume C# nugets #6503

Closed
jonthysell opened this issue Nov 12, 2020 · 2 comments
Closed
Labels
Area: C#/C++ interop Area: Developer Experience enhancement External Issue tracked in this repo but change will need to happen in another repo Recommend: Not Planned Recommend that issue should be given Not Planned milestone.
Milestone

Comments

@jonthysell
Copy link
Contributor

jonthysell commented Nov 12, 2020

This is not an issue with us per se, but something that affects us. If you try to add a C# UWP dependency to any C++/WinRT project, the operation will fail, using VS or nuget.exe.

How this affects us:

C++/WinRT Apps cannot consume C# native modules distributed via nuget. They can only consume those modules by source (presuming the source itself doesn't hit any of the other bugs impacting C# use by C++/WinRT, like #6470, #6473).

C++/WinRT Native Modules cannot consume C# libraries provided via nuget. So if you wanted so say, write a module to expose Telerik controls, you have to use C#.

@jonthysell jonthysell added the bug label Nov 12, 2020
@ghost ghost added the Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) label Nov 12, 2020
@chrisglein chrisglein added this to the 0.65 milestone Nov 19, 2020
@chrisglein chrisglein added Area: Developer Experience External Issue tracked in this repo but change will need to happen in another repo and removed Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) labels Nov 19, 2020
@Scottj1s
Copy link
Member

Scottj1s commented Feb 5, 2021

The new "Windows Desktop Compatible" setting in VS 16.8 (which sets $(DesktopCompatible) to true) enables UWP projects to be consumed by Desktop projects (note that to date, this has not been publicly documented beyond a comment in the issue).

See also:
microsoft/WindowsAppSDK#58

@asklar
Copy link
Member

asklar commented Feb 8, 2021

thanks for the note @Scottj1s, note that all of the modules/apps discussed here are UWP though, does that new property gain us anything in that case?

@chrisglein chrisglein modified the milestones: 0.65, Backlog Apr 24, 2021
@jonthysell jonthysell added the Recommend: Not Planned Recommend that issue should be given Not Planned milestone. label Aug 14, 2023
@chrisglein chrisglein closed this as not planned Won't fix, can't repro, duplicate, stale Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: C#/C++ interop Area: Developer Experience enhancement External Issue tracked in this repo but change will need to happen in another repo Recommend: Not Planned Recommend that issue should be given Not Planned milestone.
Projects
None yet
Development

No branches or pull requests

4 participants