Skip to content

Build the repo with the published ICSharpCode.ReferenceAssemblyAnnotator - #2

Merged
christophwille merged 1 commit into
masterfrom
self-annotate-icsharpcode
Nov 9, 2026
Merged

christophwille merged 1 commit into
masterfrom
self-annotate-icsharpcode

Conversation

@christophwille

Copy link
Copy Markdown
Member

Summary

Follow-up 1 from #1: the repo annotated its own references with the old TunnelVisionLabs.ReferenceAssemblyAnnotator 1.0.0-alpha.160, which still has the GetElementType() comparer bug. It now uses the published ICSharpCode.ReferenceAssemblyAnnotator 2.0.0-preview.7.

  • Directory.Build.props: the package reference now points to ICSharpCode.ReferenceAssemblyAnnotator 2.0.0-preview.7.
  • ICSharpCode.ReferenceAssemblyAnnotator.csproj: the project now references a package with its own ID, so restore fails with NU1108: Cycle detected. This brings back the NewIdRequiredDueToNuGetBug workaround that Port to .NET 10 SDK, rename to ICSharpCode.ReferenceAssemblyAnnotator, add GitHub Actions #1 removed, with the new ID: during restore PackageId is ICSharpCode.ReferenceAssemblyAnnotator.NewIdRequiredDueToNuGetBug, and the RestorePackageId target sets it back before the nuspec is generated. The nupkg is still ICSharpCode.ReferenceAssemblyAnnotator.<version>.nupkg.
  • CLAUDE.md: updated the note about which package the repo builds itself with, and explained the workaround.

Validation

  • dotnet build -c Release: clean, no warnings. project.assets.json lists only ICSharpCode.ReferenceAssemblyAnnotator/2.0.0-preview.7 and no TunnelVisionLabs package; it annotated 113 reference assemblies.
  • VS msbuild.exe -restore of the solution: clean.
  • build/test.ps1 -Engine dotnet: all 17 test builds passed. The msbuild engine was not run locally; CI covers it.

🤖 Generated with Claude Code

Replace TunnelVisionLabs.ReferenceAssemblyAnnotator 1.0.0-alpha.160 (which
still has the GetElementType() comparer bug) with the published
ICSharpCode.ReferenceAssemblyAnnotator 2.0.0-preview.7.

The project now references a package with its own ID, which fails restore
with NU1108, so restore the NewIdRequiredDueToNuGetBug PackageId workaround
under the new ID. The packed nupkg keeps its real name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@christophwille
christophwille merged commit 58dce7b into master Nov 9, 2026
2 checks passed
@christophwille
christophwille deleted the self-annotate-icsharpcode branch November 9, 2026 06:36
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.

1 participant