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

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

Merged
merged 1 commit into from
Nov 7, 2022

Conversation

ericstj
Copy link
Member

@ericstj ericstj commented Nov 4, 2022

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 owner November 4, 2022 16:22
@dotnet-issue-labeler
Copy link

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.

@ghost ghost assigned ericstj Nov 4, 2022
@radical
Copy link
Member

radical commented Nov 4, 2022

/azp run runtime-wasm-perf

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@radical
Copy link
Member

radical commented Nov 4, 2022

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
Member

Since I got both sign-offs I will merge.

@carlossanlop carlossanlop merged commit b95a516 into main Nov 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.
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2022
Sign up for free to 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