Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<ItemGroup>
<IntermediateAssembly Remove="@(IntermediateAssembly)" />
<IntermediateAssembly Include="$(NativeBinary)" />
<IntermediateSatelliteAssembliesWithTargetPath Remove="@(IntermediateSatelliteAssembliesWithTargetPath)" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot where is the logic that filters out satellite assemblies from NuGet references? I can see that we correctly don't preserve satellite assemblies from NuGet references. The issue is isolated to satellite assemblies from current assembly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic for filtering NuGet satellite assemblies is in the ComputeManagedAssembliesToCompileToNative task (lines 74-85), which outputs _AssembliesToSkipPublish. Line 25 then removes those from _ResolvedCopyLocalPublishAssets.

The fix in line 33 addresses the project's own satellite assemblies by removing IntermediateSatelliteAssembliesWithTargetPath, which the SDK would otherwise unconditionally add back to the publish list.

</ItemGroup>
</Target>

Expand Down
Loading