Skip to content

Including native libraries in dotnet projects without nuget package #7017

Closed
@nicolasr75

Description

@nicolasr75

According to the current documentation the packOptions would allow us to specify a native library for inclusion in a nuget package. Wouldn't it be great if we could have something similar for a normal app publish? That would allow us to bypass the creation of a nuget package for simple scenarios.

For example:

"packOptions":{
    "files":{
        "mappings":{
            "runtimes/win10-x64/native":{
                "includeFiles":[ "native-lib.dll"]
            }
        }            
    }
}

From my tests it looks like packOptions is not considered by dotnet publish.

https://docs.microsoft.com/de-de/dotnet/articles/core/tutorials/libraries

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions