Description
I don't know if this is a bug, but I think it's not normal. I accidentally discovered that HttpContentHeaders and HttpResponseHeaders contain the same information when using vs2022 to develop ios clients using xamarin.


This problem has not always existed. It appeared after updating the preview version of vs2022 and the corresponding ios-related SDK. There was no such problem before.
Steps to Reproduce
Create a .NET Maui APP.
Create a iOS Binding project
- Install
Aliyun.OSS.SDK.NetCore package version to 2.13.0
- Refer to [this demo](
https://github.com/aliyun/aliyun-oss-csharp-sdk/blob/master/samples/Samples/PutObjectSample.cs?spm=a2c4g.11186623.0.0.2992cb3672Qfqr&file=PutObjectSample.cs# L109) Write a method for uploading pictures and execute it on the ios side
If you feel that the second step is troublesome, you can also try to build an API service by yourself. The response status code of the API is 200, and the returned response header contains x-oss-hash-crc64ecma and other headers to try. We have not done this kind of test for the time being. Not sure if this will work
Version with bug
IDE Version:
Microsoft Visual Studio Enterprise 2022
Version 17.5.0 Preview 6.0
VisualStudio.17.Preview/17.5.0-pre.6.0+33402.96
Microsoft .NET Framework
Version 4.8.09032
Xamarin 17.5.0.172 (d17-5@2a1a1bf)
Xamarin Designer 17.5.3.46 (remotes/origin/d17-5@e4dd80b2bb)
Xamarin.Android SDK 13.2.0.0 (d17-5/797e2e1)
Xamarin.Android Reference Assemblies
VisualStudio.Mac 1.0
Mac Extension for Visual Studio
SDK Version: 7.0.200-preview.22628.1
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 15.7.1 .NET 7
Did you find any workaround?
Versions prior to Microsoft Visual Studio Enterprise 2022 preview4 do not have such issues,But in my opinion it should be related to the corresponding xamarin version, not directly related to the Visual Studio Enterprise version
Relevant log output
No response
Description
I don't know if this is a bug, but I think it's not normal. I accidentally discovered that HttpContentHeaders and HttpResponseHeaders contain the same information when using vs2022 to develop ios clients using xamarin.
This problem has not always existed. It appeared after updating the preview version of vs2022 and the corresponding ios-related SDK. There was no such problem before.
Steps to Reproduce
Create a .NET Maui APP.
Create a iOS Binding project
Aliyun.OSS.SDK.NetCorepackage version to2.13.0https://github.com/aliyun/aliyun-oss-csharp-sdk/blob/master/samples/Samples/PutObjectSample.cs?spm=a2c4g.11186623.0.0.2992cb3672Qfqr&file=PutObjectSample.cs# L109) Write a method for uploading pictures and execute it on the ios sideIf you feel that the second step is troublesome, you can also try to build an API service by yourself. The response status code of the API is 200, and the returned response header contains
x-oss-hash-crc64ecmaand other headers to try. We have not done this kind of test for the time being. Not sure if this will workVersion with bug
IDE Version:
Microsoft Visual Studio Enterprise 2022
Version 17.5.0 Preview 6.0
VisualStudio.17.Preview/17.5.0-pre.6.0+33402.96
Microsoft .NET Framework
Version 4.8.09032
Xamarin 17.5.0.172 (d17-5@2a1a1bf)
Xamarin Designer 17.5.3.46 (remotes/origin/d17-5@e4dd80b2bb)
Xamarin.Android SDK 13.2.0.0 (d17-5/797e2e1)
Xamarin.Android Reference Assemblies
VisualStudio.Mac 1.0
Mac Extension for Visual Studio
SDK Version: 7.0.200-preview.22628.1
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 15.7.1 .NET 7
Did you find any workaround?
Versions prior to Microsoft Visual Studio Enterprise 2022 preview4 do not have such issues,But in my opinion it should be related to the corresponding xamarin version, not directly related to the Visual Studio Enterprise version
Relevant log output
No response