Skip to content

Conversation

@jonathanpeppers
Copy link
Member

In .NET 10, we are facing some errors due to MSBuild files containing mismatched versions:

packages\microsoft.aspnetcore.app.internal.assets\10.0.0-alpha.2.25061.1\build\Microsoft.AspNetCore.App.Internal.Assets.targets
packages\microsoft.aspnetcore.components.webview\10.0.0-alpha.2.25062.2\build\Microsoft.AspNetCore.Components.WebView.props

The version of the first is controlled by the .NET SDK, while the second by the version of the Microsoft.AspNetCore.Components.WebView package.

To align this, we could add CoherentParentDependency:

<Dependency Name="Microsoft.AspNetCore.Components.WebView" Version="10.0.0-alpha.2.25062.2" CoherentParentDependency="Microsoft.NET.Sdk">
  <Uri>https://github.com/dotnet/aspnetcore</Uri>
  <Sha>a869e316fd72bd8b94dfee3704266260b9c547ab</Sha>
</Dependency>

However, this results in an error such as:

> darc update-dependencies --coherency-only
Checking for coherency updates...
fail: Coherency updates failed for the following dependencies:  Unable to update Microsoft.AspNetCore.Components.WebView to have coherency with Microsoft.NET.Sdk: https://github.com/dotnet/sdk @ 60e9a46917ff91cc570272ecc83249497c99a79f does not contain dependency Microsoft.AspNetCore.Components.WebView
        - Add the dependency to https://github.com/dotnet/sdk.

To solve this, we can add dependency to dotnet/sdk and dotnet/maui can align these version numbers going forward. It should also make it so for dotnet/maui gets the proper ASP.NET versions for release branches.

I added several packages that are used by dotnet/maui.

In .NET 10, we are facing some errors due to MSBuild files containing
mismatched versions:

    packages\microsoft.aspnetcore.app.internal.assets\10.0.0-alpha.2.25061.1\build\Microsoft.AspNetCore.App.Internal.Assets.targets
    packages\microsoft.aspnetcore.components.webview\10.0.0-alpha.2.25062.2\build\Microsoft.AspNetCore.Components.WebView.props

The version of the first is controlled by the .NET SDK, while the
second by the version of the `Microsoft.AspNetCore.Components.WebView`
package.

To align this, we could add `CoherentParentDependency`:

    <Dependency Name="Microsoft.AspNetCore.Components.WebView" Version="10.0.0-alpha.2.25062.2" CoherentParentDependency="Microsoft.NET.Sdk">
      <Uri>https://github.com/dotnet/aspnetcore</Uri>
      <Sha>a869e316fd72bd8b94dfee3704266260b9c547ab</Sha>
    </Dependency>

However, this results in an error such as:

    > darc update-dependencies --coherency-only
    Checking for coherency updates...
    fail: Coherency updates failed for the following dependencies:  Unable to update Microsoft.AspNetCore.Components.WebView to have coherency with Microsoft.NET.Sdk: https://github.com/dotnet/sdk @ 60e9a46 does not contain dependency Microsoft.AspNetCore.Components.WebView
            - Add the dependency to https://github.com/dotnet/sdk.

To solve this, we can add dependency to dotnet/sdk and dotnet/maui can
align these version numbers going forward. It should also make it so
for dotnet/maui gets the proper ASP.NET versions for release branches.

I added several packages that are used by dotnet/maui.
@ghost ghost added Area-Infrastructure untriaged Request triage from a team member labels Jan 15, 2025
@jonathanpeppers
Copy link
Member Author

The one build failure seems unrelated, as I just touched an xml file. Going to merge.

@jonathanpeppers jonathanpeppers merged commit 757d99d into dotnet:main Jan 15, 2025
35 of 38 checks passed
@jonathanpeppers jonathanpeppers deleted the dev/peppers/darc/maui branch January 15, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Infrastructure untriaged Request triage from a team member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants