dotnet / dotnet/sourcelink

snupkgs rejected by nuget.org if the DLLs are contentFiles

Open
#1,462 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.4k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

I have a number of "plugin" libraries that are lazy-loaded at runtime. The only way i could get these libraries working as intended via nuget was to pack the DLLs as contentFiles so they wouldn't be linked automatically (if someone has a better suggestion i'm all ears).

Anyway, the only problem is that my .snupkg files won't upload to nuget.org:

> The uploaded symbols package contains pdb(s) for a corresponding dll(s) not found in the nuget package

I have no idea if they'd actually "work" or not since there is no way to test snupkgs to my knowledge without uploading them.

Here is an example:

[Pack.nuspec on GitHub](https://github.com/jherby2k/AudioWorks/blob/main/AudioWorks/src/Extensions/AudioWorks.Extensions.Opus/Pack.nuspec)

[AudioWorks.Extensions.Opus.2.1.0.nupkg.txt](https://github.com/user-attachments/files/21601237/AudioWorks.Extensions.Opus.2.1.0.nupkg.txt)
[AudioWorks.Extensions.Opus.2.1.0.snupkg.txt](https://github.com/user-attachments/files/21601238/AudioWorks.Extensions.Opus.2.1.0.snupkg.txt)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.