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

Architecture-specific folders #16381

Open
valeriob opened this issue Mar 15, 2021 · 4 comments
Open

Architecture-specific folders #16381

valeriob opened this issue Mar 15, 2021 · 4 comments
Assignees

Comments

@valeriob
Copy link

What is the correct way to create a c# project with native dependencies
image
and make them flow to other project that depend on it ?
We are able to do it in nuget placing assets in the runtimes/rid/folders, but what is the csporj equivalent ?

Thanks

@jjmew jjmew transferred this issue from dotnet/project-system Mar 16, 2021
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Request triage from a team member label Mar 16, 2021
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@huoyaoyuan
Copy link
Member

I'd ran into this. PackageReference supports the rid specification, but ProjectReference doesn't. I had to workaround by creating a temporary nupkg.

@joeloff joeloff removed the untriaged Request triage from a team member label Apr 14, 2021
@John0King
Copy link

John0King commented Feb 27, 2022

I'm from dotnet/runtime#65420,
I think we need some Item like <NativeBinaryReference Include="native.dll" Rid="win-x64" /> to implement this, this can be use to both genereate nuget package and also for project reference.

Or , we should make the metadata PackagePath to be supported both on <PackageReference /> and <ProjectReference />.

@KiruyaMomochi
Copy link

KiruyaMomochi commented Apr 5, 2022

From dotnet/runtime#65420 too.

Now that both iOS and Android supports this NuGet convention. However, if I don't want to create a native package, I need to use AndroidNativeLibrary for Android, but NativeReference for iOS. When it comes to WebAssembly, NativeFileReferences is required. Furthermore, it looks like such an equivalent does not exist for Windows/Linux/macOS.

Platform Item to Use
iOS NativeReference
Android AndroidNativeLibrary
WebAssembly NativeFileReferences
Others ???

I really hope we have a unified item to cover all these differences.

Please also see #19929.

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

5 participants