Skip to content
This repository was archived by the owner on Nov 23, 2019. It is now read-only.
This repository was archived by the owner on Nov 23, 2019. It is now read-only.

Support AnyCPU on .NET Framework applications #21

@natemcmaster

Description

@natemcmaster

Currently this package does not support AnyCPU which means .NET Framework apps must use PlatformTarget=x64 or x86.

It is fairly easy to workaround this. We did this in the Microsoft.Data.Sqlite package by (1) adding a little managed code that locates sqlite3.dll and loads it via LoadLibraryEx and (2) adding an MSBuild target in the package to copy files to the output folder when PlatformTarget=AnyCPU.

Example:
https://github.com/natemcmaster/libsqlite3-package/blob/ba16e2ede7768cf80cfe7a6023109e2c5a59e30e/files/SQLite.props
https://github.com/aspnet/Microsoft.Data.Sqlite/blob/rel/1.1.1/src/Microsoft.Data.Sqlite/Utilities/NativeLibraryLoader.cs

Issues
aspnet/KestrelHttpServer#1625
aspnet/KestrelHttpServer#1652
aspnet/KestrelHttpServer#696

cc @davidfowl @moozzyk @muratg

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions