Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aspire 9.0.0 targeting net8.0 forces .NET 9.0.0 library dependencies #6741

Open
1 task done
paulomorgado opened this issue Nov 20, 2024 · 4 comments
Open
1 task done

Comments

@paulomorgado
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Aspire 9 Test Project (xUnit) imposes STS libraries on solutions using LTS libraries by taking a dependency on Microsoft.Extensions.Http.Resilience (>= 9.0.0).

That will force a lot of essential dependencies on 9.0.0.

Expected Behavior

Aspire 9 Test Project (xUnit) does not impose STS libraries on solutions using LTS libraries.

Steps To Reproduce

Create an Aspire 9 Test Project (xUnit) targeting net8.0 on a solution with all projects targeting net8.0 (or bellow) with central package management with version override disabled.

Exceptions (if any)

No response

.NET Version info

.NET SDK:
 Version:           8.0.404
 Commit:            7b190310f2
 Workload version:  8.0.400-manifests.4d7d414a
 MSBuild version:   17.11.9+a69bbaaf5

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.19045
 OS Platform: Windows
 RID:         win-x64
 Base Path:   C:\Program Files\dotnet\sdk\8.0.404\

.NET workloads installed:
Configured to use loose manifests when installing new manifests.
 [aspire]
   Installation Source: SDK 8.0.400, VS 17.13.35507.96, VS 17.12.35506.116
   Manifest Version:    8.2.2/8.0.100
   Manifest Path:       C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.aspire\8.2.2\WorkloadManifest.json
   Install Type:        FileBased


Host:
  Version:      9.0.0
  Architecture: x64
  Commit:       9d5a6a9aa4

.NET SDKs installed:
  6.0.428 [C:\Program Files\dotnet\sdk]
  8.0.404 [C:\Program Files\dotnet\sdk]
  9.0.100 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 8.0.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 8.0.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 8.0.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
  x86   [C:\Program Files (x86)\dotnet]
    registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
  Not set

global.json file:
  C:\src\services-platform\connext\connector\global.json

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

Anything else?

No response

@rudiv
Copy link

rudiv commented Nov 20, 2024

The majority of the 9.0.0 libraries still have a net8.0 target (including Microsoft.Extensions.Http.Resilience referenced)?

@paulomorgado
Copy link
Author

The majority of the 9.0.0 libraries still have a net8.0 target (including Microsoft.Extensions.Http.Resilience referenced)?

With an STS support policy instead of an LTS support policy.

@rudiv
Copy link

rudiv commented Nov 20, 2024

Right, but you're aware of the Aspire support policy? Which is that it's not supported as soon as a new version is released?

@paulomorgado
Copy link
Author

Right, but you're aware of the Aspire support policy? Which is that it's not supported as soon as a new version is released?

I am very aware of Microsoft support policies.

And Aspire is forcing STS libraries on a solution that must use only LTS libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants