Skip to content

Revert "Update assembly version from hardcoded to MajorVersion" - #77899

Merged
carlossanlop merged 1 commit into
mainfrom
revert-74157-Net8Changes
Nov 7, 2022
Merged

Revert "Update assembly version from hardcoded to MajorVersion"#77899
carlossanlop merged 1 commit into
mainfrom
revert-74157-Net8Changes

Conversation

@ericstj

@ericstjericstj commented Nov 4, 2022

Copy link
Copy Markdown
Member

Reverts #74157

Changing assembly versions without changing the TargetFramework represented by those assemblies is causing any consuming assembly in packages that target net7.0 to have references to 8.0 versioned assemblies. This will break the consumption of those packages.

For this change to work, it cannot change referenced versions that are exposed as net7.0. The TFM targeted by packages can likely change before AssemblyVersion, but not vice-versa.

@ericstj
ericstj requested a review from radical as a code ownerNovember 4, 2022 16:22
@ghost

ghost commented Nov 4, 2022

Copy link
Copy Markdown

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@radical

Copy link
Copy Markdown
Member

/azp run runtime-wasm-perf

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@radical

radical commented Nov 4, 2022

Copy link
Copy Markdown
Member

The runtime-wasm-perf fails to build:

[2022/11/04 20:07:03][INFO] // Build Error: The project which defines benchmarks does not target 'net7.0'.
[2022/11/04 20:07:03][INFO] You need to add 'net7.0' to <TargetFrameworks> in your project file ('MicroBenchmarks').
[2022/11/04 20:07:03][INFO] Example: <TargetFrameworks>net8.0;net7.0</TargetFrameworks>

This is likely related to dotnet/performance#2585 . But also see #77883 (comment) for related context.
cc @LoopedBard3

@carlossanlop

Copy link
Copy Markdown
Contributor

Since I got both sign-offs I will merge.

@carlossanlop
carlossanlop merged commit b95a516 into mainNov 7, 2022
@carlossanlop
carlossanlop deleted the revert-74157-Net8Changes branch November 7, 2022 18:03
rainersigwald added a commit to rainersigwald/wpf that referenced this pull request Dec 1, 2022
The 8.0.100-alpha.1.22512.5 SDK was built in a window where System
references were versioned `8.0.0.0`, but in a way that broke some
things. That was backed out in dotnet/runtime#77899, which means that
assemblies built from this repo can't run on the current .NET 8 runtime,
which cannot satisfy a dependency on, for example, `System.Runtime,
Version=8.0.0.0`.
Move forward to a newer .NET 8 that has those assemblies versioned at
`7.0.0.0` again, which should work even when dotnet/runtime#78354 bumps
the version again, because the loader will accept higher versions.
dreddy-work pushed a commit to dotnet/wpf that referenced this pull request Dec 1, 2022
The 8.0.100-alpha.1.22512.5 SDK was built in a window where System
references were versioned `8.0.0.0`, but in a way that broke some
things. That was backed out in dotnet/runtime#77899, which means that
assemblies built from this repo can't run on the current .NET 8 runtime,
which cannot satisfy a dependency on, for example, `System.Runtime,
Version=8.0.0.0`.
Move forward to a newer .NET 8 that has those assemblies versioned at
`7.0.0.0` again, which should work even when dotnet/runtime#78354 bumps
the version again, because the loader will accept higher versions.
@ghostghost locked as resolved and limited conversation to collaborators Dec 7, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@ericstj@radical@carlossanlop@ViktorHofer