Efferent-Health / fo-dicom.Codecs

Cross-platform Dicom native codecs for fo-dicom
Other
67 stars 23 forks source link

Cannot get current processor architecture in .NET 9 #83

Closed hyperlapse122 closed 1 day ago

hyperlapse122 commented 1 week 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

There is RuntimeInformation.ProcessArchitecture and RuntimeInformation.OSArchitecture but I don't know if it can be used for it.

To Reproduce

Environment:

jaime-olivares commented 6 days ago

We already testing a universal solution in branch GetProcessorArchitecture