Closed hyperlapse122 closed 1 day ago
Describe the bug AssemblyName.ProcessorArchitecture was deprecated and always returns ProcessorArchitecture.MSIL in .NET 9. Due to this change, Platform.Current always returns unknown architecture on Windows x64 (It worked on .NET 8). (please refer to this code using AssemblyName.ProcessorArchitecture
AssemblyName.ProcessorArchitecture
ProcessorArchitecture.MSIL
Platform.Current
There is RuntimeInformation.ProcessArchitecture and RuntimeInformation.OSArchitecture but I don't know if it can be used for it.
RuntimeInformation.ProcessArchitecture
RuntimeInformation.OSArchitecture
To Reproduce
fo-dicom
fo-dicom.Codecs
Environment:
We already testing a universal solution in branch GetProcessorArchitecture
GetProcessorArchitecture
Describe the bug
AssemblyName.ProcessorArchitecture
was deprecated and always returnsProcessorArchitecture.MSIL
in .NET 9. Due to this change,Platform.Current
always returns unknown architecture on Windows x64 (It worked on .NET 8). (please refer to this code usingAssemblyName.ProcessorArchitecture
There is
RuntimeInformation.ProcessArchitecture
andRuntimeInformation.OSArchitecture
but I don't know if it can be used for it.To Reproduce
fo-dicom
andfo-dicom.Codecs
, and try encode / decode DICOM image.Environment:
fo-dicom
nuget package version: 5.1.4fo-dicom.Codecs
nuget package version: 5.15.2