Skip to content

Conversation

@MichaelSimons
Copy link
Member

Related to #8293

For .NET source-build, repos must target NetCurrent (.NET 8.0) and/or NetStandard. This initial changes for #8293 added .NET 8.0 on top of the existing tfms. This PR conditions source-build to only target net8.0 in order to eliminate prebuilts.

@MichaelSimons MichaelSimons requested review from a team as code owners May 31, 2023 15:00
@MichaelSimons
Copy link
Member Author

@davidwengier - The CI failure doesn't appear related to these changes. I see it in other legs as well. If agreed, can you please merge? TIA.

@davidwengier davidwengier merged commit 49d32d5 into dotnet:main Jun 1, 2023
<DefaultNetFxTargetFramework>net472</DefaultNetFxTargetFramework>
<DefaultNetCoreTargetFramework>net8.0</DefaultNetCoreTargetFramework>
<DefaultNetCoreTargetFrameworks>$(DefaultNetCoreTargetFramework);net7.0</DefaultNetCoreTargetFrameworks>
<DefaultNetCoreTargetFrameworks Condition="'$(DotNetBuildFromSource)' == 'true'">$(DefaultNetCoreTargetFramework)</DefaultNetCoreTargetFrameworks>
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this going to break when it merges into dotnet/sdk for 7.0 releases? Basically doesn't this have the exact same problem roslyn had that forced us to multi-target net7.0;net8.0 when '$(DotNetBuildFromSourceFlavor)' != 'Product'?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I overlooked that this flows into multiple releases. Thanks for the catch. I will open another PR.

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

Successfully merging this pull request may close these issues.

3 participants