Skip to content

Fix handling of native runtime components for Crossgen2 package#38788

Merged
jkoritzinsky merged 1 commit into
dotnet:masterfrom
AntonLapounov:Crossgen2Package
Jul 6, 2020
Merged

Fix handling of native runtime components for Crossgen2 package#38788
jkoritzinsky merged 1 commit into
dotnet:masterfrom
AntonLapounov:Crossgen2Package

Conversation

@AntonLapounov
Copy link
Copy Markdown
Member

Amendment to #38600. I figured out that the issue was caused by appending a trailing slash to TargetPath in netcoreapp.depproj file in #36781: https://github.com/dotnet/runtime/pull/36781/files#diff-9fac0b3c275ca346bd7e392f9ae3807cL108-R108, which made the native libraries to be omitted by the following line in Microsoft.NETCore.App.Crossgen2.pkgproj:

<Crossgen2File Include="@(RuntimeFile)" Condition="'%(RuntimeFile.TargetPath)' == 'runtimes/$(PackageRID)/native'" />

The changes in this PR remove the trailing slash and exclude static .a libraries, which are not used by Crossgen2. @dotnet/crossgen-contrib

@jkoritzinsky jkoritzinsky merged commit b93d570 into dotnet:master Jul 6, 2020
@AntonLapounov AntonLapounov deleted the Crossgen2Package branch July 6, 2020 14:53
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants