Skip to content

Dnx Library Project, How to exclude source code from NuGet package that is produced on build #1303

@dazinator

Description

@dazinator

I have a dnx based library project.

When it's built, it produces a NuGet package - that't nice.

The NuGet package contains the source code.. That's not so nice for me..

How do I prevent the source code from being included in the NuGet package? I have tried adding this to my project.json file but it doesn't appear to have any effect:

{
 "publishExclude": [ "**/**.cs" ],
"packExclude": ["**/**.cs"]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions