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

Bump BCL references to 9.0 #76890

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Bump BCL references to 9.0 #76890

wants to merge 8 commits into from

Conversation

genlu
Copy link
Member

@genlu genlu commented Jan 23, 2025

No description provided.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead labels Jan 23, 2025
eng/Versions.props Outdated Show resolved Hide resolved
@@ -27,6 +27,8 @@
The version targeted is only used for build time, since we use MSBuildLocator to discover the proper version at runtime.
-->
<_MsbuildVersion>17.3.4</_MsbuildVersion>
<!-- S.C.I 9.0 no longer supports .NET 6 -->
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jasonmalinowski Would we want to pin the BuildHost at S.C.I 8.0.0 until we are ready to bump the tfm?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally we should be bumping the BuildHost TFM "as late as possible". Once we merge the other PR that makes the library netstandard2.0, somebody could theoretically try to use MSBuildWorkspace in a 6.0 app...but if the BuildHost only runs on 8.0 or later you end up creating an implicit version limitation there.

That is of course not to say that we should bend backwards to support older versions -- but if we can do a minimal amount of work to keep stuff older, that might be easier than dealing the inevitable bugs people file when old versions don't work.

I think setting this property seems easiest; frankly I'm kinda surprised we added such a property in the first place. I'd propose changing the comment though since I'm sure other package upgrades will depend on this than just System.Collections.Immutable.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And oh: I imagine this is easier to set this than it is to pin versions and deal with the special problems that creates.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah ok, I was afraid the package wasn't shipping with netstandard or net6.0 builds but it still has netstardard2.0

@@ -27,6 +27,8 @@
The version targeted is only used for build time, since we use MSBuildLocator to discover the proper version at runtime.
-->
<_MsbuildVersion>17.3.4</_MsbuildVersion>
<!-- S.C.I 9.0 no longer supports .NET 6 -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<!-- S.C.I 9.0 no longer supports .NET 6 -->
<!-- Some of the 9.0 packages no longer have been tested against .NET 6, but we're OK with that -->

Comment on lines 17 to 18
<!-- Pin SCI to 8.0, since this generator is built & consumed in our pipeline so it has to work with stock compiler in msbuild (currently shipped with SCI 8.0) -->
<PackageReference Include="System.Collections.Immutable" VersionOverride="8.0.0" PrivateAssets="All" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<!-- Pin SCI to 8.0, since this generator is built & consumed in our pipeline so it has to work with stock compiler in msbuild (currently shipped with SCI 8.0) -->
<PackageReference Include="System.Collections.Immutable" VersionOverride="8.0.0" PrivateAssets="All" />
<!-- Pin SRM & SCI to 8.0, since this generator is built & consumed in our pipeline so it has to work with stock compiler in msbuild (currently shipped with SRM & SCI 8.0) -->
<PackageReference Include="System.Reflection.Metadata" VersionOverride="8.0.0" PrivateAssets="All" />
<PackageReference Include="System.Collections.Immutable" VersionOverride="8.0.0" PrivateAssets="All" />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants