Skip to content

Commit

Permalink
Use netfxreference.props to provide the shims for the platform manife…
Browse files Browse the repository at this point in the history
…st. (dotnet#45573)

* Use netfxreference.props to provide the shims for the platform manifest.

* PR feedback.
  • Loading branch information
jkoritzinsky committed Dec 14, 2020
1 parent 7696202 commit 7871506
Showing 1 changed file with 7 additions and 42 deletions.
49 changes: 7 additions & 42 deletions src/installer/pkg/sfx/Microsoft.NETCore.App/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@
</ItemGroup>

<!--
Platform manifest needs to include all System*Native items from 3.1 release. This itemgroup adds
them explicitly, to fill the gap that appeared when the names of these libraries were changed
in 5.0 to conform to a specific Android naming convention. The library name change was a fix
for https://github.com/dotnet/runtime/issues/33118. For more details of the issue and fix see
https://github.com/dotnet/runtime/issues/33450.
Platform manifest needs to include all native shims from previous releases.
This itemgroup adds them explicitly.
-->
<ItemGroup>
<_pastShimFiles Include="System.Globalization.Native.dylib" />
Expand All @@ -51,6 +48,7 @@
<_pastShimFiles Include="System.Security.Cryptography.Native.OpenSsl.a" />
<_pastShimFiles Include="System.Security.Cryptography.Native.OpenSsl.dylib" />
<_pastShimFiles Include="System.Security.Cryptography.Native.OpenSsl.so" />
<_pastShimFiles Include="clrcompression.dll" />
<PlatformManifestFileEntry Include="@(_pastShimFiles)" IsNative="true" />
</ItemGroup>

Expand All @@ -61,35 +59,14 @@
</PropertyGroup>

<Import Project="$(LibrariesProjectRoot)NetCoreAppLibrary.props" />
<Import Project="$(LibrariesProjectRoot)shims/netfxreference.props" />

<ItemGroup>
<!-- Libraries specified in NetCoreAppLibrary.props -->
<!-- Public libraries and shims -->
<PlatformManifestFileEntry Include="@(NetCoreAppLibrary->'%(Identity).dll')" />
<PlatformManifestFileEntry Include="@(NetCoreAppLibraryNoReference->'%(Identity).dll')" />
<!-- Shim libraries -->
<PlatformManifestFileEntry Include="mscorlib.dll" />
<PlatformManifestFileEntry Include="@(NetFxReference->'%(Identity).dll')" />
<PlatformManifestFileEntry Include="netstandard.dll" />
<PlatformManifestFileEntry Include="WindowsBase.dll" />
<PlatformManifestFileEntry Include="Microsoft.VisualBasic.dll" />
<PlatformManifestFileEntry Include="System.ComponentModel.DataAnnotations.dll" />
<PlatformManifestFileEntry Include="System.Configuration.dll" />
<PlatformManifestFileEntry Include="System.Core.dll" />
<PlatformManifestFileEntry Include="System.Data.dll" />
<PlatformManifestFileEntry Include="System.dll" />
<PlatformManifestFileEntry Include="System.Drawing.dll" />
<PlatformManifestFileEntry Include="System.IO.Compression.FileSystem.dll" />
<PlatformManifestFileEntry Include="System.Net.dll" />
<PlatformManifestFileEntry Include="System.Numerics.dll" />
<PlatformManifestFileEntry Include="System.Runtime.Serialization.dll" />
<PlatformManifestFileEntry Include="System.Security.dll" />
<PlatformManifestFileEntry Include="System.ServiceModel.Web.dll" />
<PlatformManifestFileEntry Include="System.ServiceProcess.dll" />
<PlatformManifestFileEntry Include="System.Transactions.dll" />
<PlatformManifestFileEntry Include="System.Web.dll" />
<PlatformManifestFileEntry Include="System.Windows.dll" />
<PlatformManifestFileEntry Include="System.Xml.dll" />
<PlatformManifestFileEntry Include="System.Xml.Linq.dll" />
<PlatformManifestFileEntry Include="System.Xml.Serialization.dll" />
<!-- Private libraries -->
<PlatformManifestFileEntry Include="System.Private.CoreLib.dll" />
<PlatformManifestFileEntry Include="System.Private.DataContractSerialization.dll" />
Expand Down Expand Up @@ -176,7 +153,6 @@
<PlatformManifestFileEntry Include="api-ms-win-crt-utility-l1-1-0.dll" IsNative="true" FallbackFileVersion="$(WindowsForwarderFileVersion)" />
<PlatformManifestFileEntry Include="API-MS-Win-core-xstate-l2-1-0.dll" IsNative="true" FallbackFileVersion="$(WindowsForwarderFileVersion)" />
<PlatformManifestFileEntry Include="ucrtbase.dll" IsNative="true" />
<PlatformManifestFileEntry Include="clrcompression.dll" IsNative="true" />
<PlatformManifestFileEntry Include="System.IO.Compression.Native.dll" IsNative="true" />
<PlatformManifestFileEntry Include="createdump.exe" IsNative="true" />
<PlatformManifestFileEntry Include="createdump" IsNative="true" />
Expand Down Expand Up @@ -229,18 +205,7 @@

<ItemGroup>
<!-- Exclude shims from the closure verification -->
<ExcludeFromClosure Include="mscorlib" />
<ExcludeFromClosure Include="System" />
<ExcludeFromClosure Include="System.Configuration" />
<ExcludeFromClosure Include="System.Core" />
<ExcludeFromClosure Include="System.Data" />
<ExcludeFromClosure Include="System.Drawing" />
<ExcludeFromClosure Include="System.Net" />
<ExcludeFromClosure Include="System.Security" />
<ExcludeFromClosure Include="System.ServiceModel.Web" />
<ExcludeFromClosure Include="System.ServiceProcess" />
<ExcludeFromClosure Include="System.Transactions" />
<ExcludeFromClosure Include="WindowsBase" />
<ExcludeFromClosure Include="@(NetFxReference)" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 7871506

Please sign in to comment.