Skip to content

Allow runtime-specific assets in the project #1088

Open

Description

@bricelam

Ideally, I would like to add the following directly to my *.csproj and have the correct native library used.

<ItemGroup>
  <None Update="runtimes\linux-x64\native\libsqlite3.so">
    <Pack>true</Pack>
    <PackagePath>\</PackagePath>
  </None>
  <None Update="runtimes\osx-x64\native\libsqlite3.dylib">
    <Pack>true</Pack>
    <PackagePath>\</PackagePath>
  </None>
  <None Update="runtimes\win7-x86\native\sqlite3.dll">
    <Pack>true</Pack>
    <PackagePath>\</PackagePath>
  </None>
</ItemGroup>

Unfortunately, native assets only appear to work with NuGet packages and not projects (or project references).

cc @natemcmaster

Activity

  1. added this to the milestone on Jan 29, 2018
  2. bricelam commented on Jun 7, 2018

    @bricelam
    ContributorAuthor

    See also #765

  3. added a commit that references this issue on Jun 7, 2022
  4. added
    native-assets
    untriaged
    on Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-NetSDKnative-assetsuntriaged

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions