From f3bb27625f0a3db16d63362da6978ec899b9612f Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Wed, 13 May 2026 09:00:22 +0000 Subject: [PATCH] Fix release archives: remove NetPace.Core.xml from publish output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AllowedReferenceRelatedFileExtensions (previous attempt) filters reference- related files at the ResolveAssemblyReferences (build) step; it does not reliably filter ResolvedFileToPublish, the item group that drives what ends up in the publish directory. The root cause: GenerateDocumentationFile=true in NetPace.Core.csproj causes MSBuild to copy NetPace.Core.xml into every publish directory. PublishSingleFile bundles DLLs but explicitly excludes XML files, so the XML lands loose and breaks the "exactly 1 entry" archive contract across all 12 non-AOT variants. Fix: add a ComputeFilesToPublish AfterTargets hook in NetPace.Console.csproj that removes .xml entries from ResolvedFileToPublish. This targets the correct stage of the publish pipeline and covers both PublishSingleFile and AOT builds. NuGet pack is unaffected — packing uses _PackageFiles, not ResolvedFileToPublish. Co-authored-by: Frank Ray --- src/NetPace.Console/NetPace.Console.csproj | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/NetPace.Console/NetPace.Console.csproj b/src/NetPace.Console/NetPace.Console.csproj index 620f8e9..88f01d8 100644 --- a/src/NetPace.Console/NetPace.Console.csproj +++ b/src/NetPace.Console/NetPace.Console.csproj @@ -31,4 +31,13 @@ + + + + + + +