Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Support for net8.0 #1244

Closed
cristipufu opened this issue Aug 30, 2023 · 0 comments
Closed

Support for net8.0 #1244

cristipufu opened this issue Aug 30, 2023 · 0 comments

Comments

@cristipufu
Copy link

Usage Information

Nuke.Common 6.3.0

Description

Trying to execute with net 8.0 fails with:

System.NotSupportedException: BinaryFormatter serialization and deserialization are disabled within this application. See https://aka.ms/binaryformatter for more information. at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph) at Nuke.Common.Tooling.SettingsEntityExtensions.NewInstance[T](T settingsEntity) in /_/source/Nuke.Common/Tooling/SettingsEntity.NewInstance.cs:line 22

The issue is that starting with net 8 the legacy serialization infrastructure APIs are marked obsolete:
dotnet/docs#34893

Any suggestions or workaround?

Reproduction Steps

Pipeline run example here: RicoSuter/NSwag#4502

Expected Behavior

Works with net 8

Actual Behavior

Regression?

No response

Known Workarounds

No response

Could you help with a pull-request?

No

@nuke-build nuke-build locked and limited conversation to collaborators Aug 30, 2023
@matkoch matkoch converted this issue into discussion #1246 Aug 30, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants