Skip to content

Conversation

@konard
Copy link
Member

@konard konard commented Sep 12, 2025

Summary

Fixed the C# workflow failure caused by NU5017 packaging error: "Cannot create a package that has no dependencies nor content".

Root Cause

The issue was caused by a conflicting MSBuild configuration where:

  • <DebugType>embedded</DebugType> embeds debug symbols directly into the main assembly
  • <IncludeSymbols>true</IncludeSymbols> and <SymbolPackageFormat>snupkg</SymbolPackageFormat> attempt to create a separate symbol package
  • This resulted in an empty symbol package with no content, triggering the NU5017 error

Solution

  • Removed the <DebugType>embedded</DebugType> setting to allow proper symbol package generation
  • Kept the symbol package settings (IncludeSymbols and SymbolPackageFormat) to maintain debugging support
  • Updated package release notes to document the fix

Verification

✅ Local testing confirms:

  • dotnet build -c Release - succeeds
  • dotnet test -c Release -f net8 - all tests pass
  • dotnet pack -c Release --include-symbols - both .nupkg and .snupkg created successfully

The fix aligns with other successful repositories in the linksplatform organization that use the same symbol packaging configuration without the conflicting DebugType setting.

Test plan

  • Verify local build and test commands work
  • Confirm NuGet package creation succeeds
  • Wait for CI workflow to pass after merge

🤖 Generated with Claude Code


Resolves #142

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #142
@konard konard self-assigned this Sep 12, 2025
- Remove conflicting DebugType=embedded setting that prevented symbol package creation
- Symbol packages now generate successfully with snupkg format
- Update release notes to reflect the fix

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@konard konard changed the title [WIP] csharp worflow failed due to error Fix C# workflow NU5017 packaging error Sep 12, 2025
@konard konard marked this pull request as ready for review September 12, 2025 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

csharp worflow failed due to error

2 participants