Support for net8.0 #1246
              
                Unanswered
              
          
                  
                    
                      cristipufu
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment 1 reply
-
| 
         Added PR #1247  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
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 22The 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
Beta Was this translation helpful? Give feedback.
All reactions