Skip to content

Commit

Permalink
Use IsNative metadata to exclude native shared libs (dotnet#109683)
Browse files Browse the repository at this point in the history
  • Loading branch information
am11 authored and mikelle-rogers committed Dec 4, 2024
1 parent e355ec1 commit 109db5b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@
BeforeTargets="GetPackageFiles">

<ItemGroup Condition="'$(PackageTargetRuntime)' != ''">
<File Include="@(LibrariesRuntimeFiles)" TargetPath="framework" />
<!-- exclude shared libs as we only need static ones -->
<LibPackageExcludes Include="framework\%2A%2A\%2ANative$(LibSuffix)"/>
<!-- Include all libraries (managed, static, etc.), but exclude native shared libraries (those with LibSuffix) -->
<File Include="@(LibrariesRuntimeFiles)" TargetPath="framework" Condition="'%(LibrariesRuntimeFiles.IsNative)' != 'true' or '%(LibrariesRuntimeFiles.Extension)' != '$(LibSuffix)'" />

<File Include="$(CoreCLRILCompilerDir)*" TargetPath="tools" />
<File Include="$(CoreCLRAotSdkDir)*" TargetPath="sdk" />
Expand Down

0 comments on commit 109db5b

Please sign in to comment.