Update .net version 6.0 to 8.0 #54567
Unanswered
RutulPatel8
asked this question in
General
Replies: 1 comment
-
Hi :) @RutulPatel8 I used this to upgrade some projects from dotnet 6 to 8 last week: https://learn.microsoft.com/en-us/dotnet/core/porting/upgrade-assistant-overview?WT.mc_id=dotnet-35129-website Worked great for me :)
I see that the structure of the API response has changed when you upgraded from dotnet core 6 to 8. In the dotnet 6 version, the response was a simple array of objects, but in the dotnet 8 version, the response is an object with additional fields (version, message, and result), where result is the array of objects. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
when I update .net core version from 6.0 to 8.0. I might affect the api response. due to that It is breaking whole my application.
Anyone can help to sort these.
Here is the 6.0 response :
{[
{
"date": "2024-03-15T12:47:35.4791006+05:30",
"temperatureC": -14,
"temperatureF": 7,
"summary": "Scorching"
},
{
"date": "2024-03-16T12:47:35.4791059+05:30",
"temperatureC": 2,
"temperatureF": 35,
"summary": "Sweltering"
},
{
"date": "2024-03-17T12:47:35.479106+05:30",
"temperatureC": -2,
"temperatureF": 29,
"summary": "Bracing"
},
{
"date": "2024-03-18T12:47:35.4791061+05:30",
"temperatureC": 29,
"temperatureF": 84,
"summary": "Cool"
},
{
"date": "2024-03-19T12:47:35.4791062+05:30",
"temperatureC": 23,
"temperatureF": 73,
"summary": "Balmy"
}
]}
Here is 8.0 Response :
{
"version": "1.0",
"message": "GET Request successful.",
"result": [
{
"date": "2024-03-15T12:47:35.4791006+05:30",
"temperatureC": -14,
"temperatureF": 7,
"summary": "Scorching"
},
{
"date": "2024-03-16T12:47:35.4791059+05:30",
"temperatureC": 2,
"temperatureF": 35,
"summary": "Sweltering"
},
{
"date": "2024-03-17T12:47:35.479106+05:30",
"temperatureC": -2,
"temperatureF": 29,
"summary": "Bracing"
},
{
"date": "2024-03-18T12:47:35.4791061+05:30",
"temperatureC": 29,
"temperatureF": 84,
"summary": "Cool"
},
{
"date": "2024-03-19T12:47:35.4791062+05:30",
"temperatureC": 23,
"temperatureF": 73,
"summary": "Balmy"
}
]
}
Beta Was this translation helpful? Give feedback.
All reactions