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

Added net7.0 along side net6.0 support #2005

Merged
merged 1 commit into from
Jul 21, 2023

Conversation

cleftheris
Copy link
Contributor

@cleftheris cleftheris commented Jun 12, 2023

  • changed global.json sdk to 7.0.302
  • added multiple targetframeworks net6.0 + net7.0
  • extracted Microsoft.SourceLink.GitHub reference up to build.targets
  • updated github actions with dotnet version 7.0.x

According to the comment by @tidyui in a previous pull request #1983 I added support both for dotnet 6.0 and dotnet 7.0 so that it can be delivered as a patch release.

All tests pass both on dotnet versions.
I had occasional transient error popup regarding concurrent runs of the Piranha.Tests.ImageSharp.MediaServiceTests.GetCropped because the same tests run in both frameworks.

- changed global.json sdk to 7.0.302
- added multiple targetframewords net6.0 + net7.0
- extracted Microsoft.SourceLink.GitHub reference up to build.targets
- updated github actions with dotnet version 7.0.x
@cleftheris
Copy link
Contributor Author

@dotnet-policy-service agree

@cleftheris
Copy link
Contributor Author

cleftheris commented Jun 19, 2023

Hi all,

My reasoning behind this PR is that dotnet 7 support opens up a lot of minimal API features for headless projects and I would love to be able to upgrade my CMS project. At the moment I cannot do that due to EFCore breaking on dotnet7. With dotnet8 around the corner it could help provide a starting point for multiple TFM support.

Regards,

C.

@tidyui
Copy link
Member

tidyui commented Jun 19, 2023

Great! Will take a look and try it out and see how NuGet packages are generated

@tidyui tidyui merged commit 81c2abd into PiranhaCMS:master Jul 21, 2023
@tidyui tidyui added this to the Version 10.4 milestone Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants