Skip to content

Exclude shared libs from ilcframework in nupkg#109253

Merged
MichalStrehovsky merged 1 commit intodotnet:mainfrom
am11:patch-14
Nov 8, 2024
Merged

Exclude shared libs from ilcframework in nupkg#109253
MichalStrehovsky merged 1 commit intodotnet:mainfrom
am11:patch-14

Conversation

@am11
Copy link
Copy Markdown
Member

@am11 am11 commented Oct 26, 2024

#108649 (comment)

shaves off 1MB from runtime pack on osx; before 39M artifacts/packages/Release/Shipping/runtime.osx-arm64.Microsoft.DotNet.ILCompiler.10.0.0-dev.nupkg now 38M.

@ghost ghost added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Oct 26, 2024
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Oct 26, 2024
@am11 am11 added area-NativeAOT-coreclr and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Oct 26, 2024
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Copy link
Copy Markdown
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

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

Thanks! I'm not going to merge this just yet because we're trying to get dotnet/sdk#43015 in and this is the kind of change that will only be tested in the sdk repo and if there's a problem, it's going to delay things.

@MichalStrehovsky MichalStrehovsky merged commit 443f63d into dotnet:main Nov 8, 2024
@am11 am11 deleted the patch-14 branch November 8, 2024 13:58
<ItemGroup Condition="'$(PackageTargetRuntime)' != ''">
<File Include="@(LibrariesRuntimeFiles)" TargetPath="framework" />
<!-- exclude shared libs as we only need static ones -->
<LibPackageExcludes Include="framework\%2A%2A\%2A$(LibSuffix)"/>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@am11 I think this is breaking in dotnet/sdk#44751, we see lots of failures like

C:\h\w\9AF40878\t\dotnetSdkTests\ybuooc24.wa2.nuget\packages\microsoft.dotnet.ilcompiler\10.0.0-alpha.1.24558.9\build\Microsoft.NETCore.Native.Publish.targets(78,5): error : The FrameworkAssemblies ItemGroup is required for _ComputeAssembliesToCompileToNative

I think this is because we're now excluding .dll on Windows since that is the LibSuffix there but that also means no managed assemblies are included anymore.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed #109676. We only need to exclude Native.dll etc.

akoeplinger added a commit that referenced this pull request Nov 9, 2024
mikelle-rogers pushed a commit to mikelle-rogers/runtime that referenced this pull request Dec 10, 2024
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-NativeAOT-coreclr community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants