Skip to content

Duplicate .props files in packages directories #37241

Closed

Description

@am11

For each platform, we are adding copy of these files with no visible difference:

src/coreclr/src/.nuget/Microsoft.NETCore.ILAsm/runtime.$(PlatformName).Microsoft.NETCore.ILAsm.props
src/coreclr/src/.nuget/Microsoft.NETCore.ILDAsm/runtime.$(PlatformName).Microsoft.NETCore.ILDAsm.props
src/coreclr/src/.nuget/Microsoft.NETCore.TestHost/runtime.$(PlatformName).Microsoft.NETCore.TestHost.props
src/installer/pkg/projects/Microsoft.NETCore.DotNetAppHost/runtime.$(PlatformName).Microsoft.NETCore.DotNetAppHost.props
src/installer/pkg/projects/Microsoft.NETCore.DotNetHost/runtime.$(PlatformName).Microsoft.NETCore.DotNetHost.props
src/installer/pkg/projects/Microsoft.NETCore.DotNetHostPolicy/runtime.$(PlatformName).Microsoft.NETCore.DotNetHostPolicy.props
src/installer/pkg/projects/Microsoft.NETCore.DotNetHostResolver/runtime.$(PlatformName).Microsoft.NETCore.DotNetHostResolver.props

@jkotas, @ericstj, is it possible to deduplicate these files? until someday when we may need to do platform-specific specialization (in which case we can probably just override the properties using Condition=.. attribute without a new file).

Activity

  1. added
    untriaged
    on Jun 1, 2020
  2. am11 commented on Jun 1, 2020

    @am11
    MemberAuthor

    Noticed this when working on enabling cross-compilation on illumos and Solaris. After completing the task, i realized that majority of lines added are due to these props files, which is apparently just a noise for each (existing/upcoming) platform.

  3. jkotas commented on Jun 1, 2020

    @jkotas
    Member

    Delete the .props file and inline their content with the right conditions to the place they are included from?

  4. am11 commented on Jun 1, 2020

    @am11
    MemberAuthor

    Yes, I was thinking something like that, just wasn't sure if something else in the (post-)packaging process is relying on the presence runtime.$(PlatformName).$(ProjectName).props files.

  5. ghost locked as resolved and limited conversation to collaborators on Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Infrastructure-librariesuntriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions