Skip to content

Version.Details.xml dependencies are not flowing properly into Version.Details.props, causing invalid removal of dependencies #5637

@nagilson

Description

@nagilson

Pull request

dotnet/sdk#52028

Type of problem

Problem with version files (Versions.Details.xml, Versions.props, global.json, ..)

Description of the issue

nagilson/sdk@3c15958

In this commit, @mmitche helpfully reflected on how we shouldn't use Microsoft.Dotnet.WinForms.ProjectTemplates in Version.Details.xml and that these flows have special properties for VMR builds on non windows. However, what we're seeing now is that in Version.Details.Props, these dependencies are being deleted, which is causing failures in our code flow, for example in dotnet/sdk#51895.

https://github.com/dotnet/sdk/pull/51895/files#diff-3a6dd62fefc313c2ae46c8eb7999a76e089076d8445bc49e710f37d52b8c63deL105

Here is an example where MicrosoftDotnetWinFormsProjectTemplatesPackageVersion was automatically removed by codeflow - this is despite the fact that Microsoft.NETCore.Platforms is defined in Version.Details.xml.

dotnet/sdk#51895

This was discussed here, dotnet/sdk#52028 (comment), and how we were surprised that this deletion was happening. Perhaps some of the logic that syncs the props files is not aware of the special casing so it's removing the dependencies?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions