-
Notifications
You must be signed in to change notification settings - Fork 5k
Pin the System.Memory package reference version in Microsoft.Extensions.DependencyModel #114173
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
Conversation
…ns.DependencyModel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (1)
- src/libraries/Microsoft.Extensions.DependencyModel/src/Microsoft.Extensions.DependencyModel.csproj: Language not supported
I need to address the detected package downgrade error:
|
Tagging subscribers to this area: @dotnet/area-infrastructure-libraries |
...braries/Microsoft.Extensions.DependencyModel/src/Microsoft.Extensions.DependencyModel.csproj
Outdated
Show resolved
Hide resolved
We can consider this as an option - on the pro side it stands to help reduce the dependencies redistributed in the SDK. For this to actually eliminate those we would need every assembly in the SDK tasks to follow this. I'm not sure how tractable this is - today the set of assemblies used by SDK tasks from latest runtime are:
So for all System.Text.Json, System.Text.Encodings.Web, and Microsoft.Bcl.AsyncInterfaces -- we could use the toolset versions in all these components. That would mean no new features - but it might be OK for SDK tasks. |
Source build is failing due to downgrades. Probably every toolset package version would need to be overidden like this runtime/Directory.Build.targets Lines 99 to 100 in 4370474
That said, I'm not sure if we can pursue this approach right now because of #114173 (comment). We might just want to drive the new System.Memory package in. |
<!-- The framework targeted by and package release band for the minimum toolset version our tasks must support --> | ||
<ToolsetTargetFramework>net8.0</ToolsetTargetFramework> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is essentially NetToolMinimum
: https://github.com/dotnet/arcade/blob/63c161539bde4a68f27bc66598137da578331d85/src/Microsoft.DotNet.Arcade.Sdk/tools/TargetFrameworkDefaults.props#L37-L40
We added the NetTool*
properties for the VS constraint.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wondered if we already had it somewhere. Let's hold off on changing this PR and burning more build resources until we understand what direction we want to take. I'm not sure if this one is going to pan out.
I'll close it for the time being. My understanding is that we're not going to take this at the moment. We can always reopen if we change our minds. |
Needed to address the failure found in the runtime deps flow dotnet/sdk#48034
This will be done alongside the proper update in S.R.CS.Unsfae: dotnet/maintenance-packages#221
I will generate a patch for the deps flow as well.