Skip to content

Allow runtime-specific assets in the projectΒ #1088

@bricelam

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-NetSDKnative-assetsIssues related to how the SDK should deal with Native assetsuntriagedRequest triage from a team member

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions