اینجا راجب کامپیوتر، نرم افزار، زبانها و مطالب مرتبط با هم گپ میزنیم
سایت و بلاگ:
mazdakparnian.com
dev.to/purejoymind
هم توی سایت شخصیم و هم توی دِو بلاگ هام رو میزارم.
Post #83
115
تغییراتی که اگر میخوان پروژه هاتون رو به دات نت ۱۰ migrate کنین شاید بد نباشه بدونین:
Breaking & Noteworthy Changes For .NET 10 Migration
1. IWebhost is officially obsolete, so you will need to use IHost moving forward - legacy apps (even up to .NET 9) could be using it without showing warnings. And if you have <TreatWarningsAsErrors>true</TreatWarningsAsErrors> set, this would be a breaking change, but a fairly simple fix nevertheless.
2. dotnet restore now audits transitive packages by default, not just direct dependencies like before. Once again, If you have <TreatWarningsAsErrors>true</TreatWarningsAsErrors> set, then this could be a potential blocker, so something to be aware of for sure - as you might need to look for another library, postpone or other.
3. Starting with .NET 10, Microsoft’s official Docker images will begin to use Ubuntu as their base operating system, instead of Debian or Alpine. This could introduce behavioral changes so be aware of it.
4. Span<T> and ReadOnlySpan<T> now supports implicit conversion, which could cause ambiguity in certain cases. Something to keep in mind as well.
5. dotnet new sln creates the new .slnx format by default, which shouldn't really be an issue, but is a good reminder to migrate projects from the older format to the newer XML-based format introduced in .NET 9 release. One of the favorite updates.
6. Field-backed properties/field keyword - this one shouldn't really be a problem unless some properties have a backing field called field, and even then, simply remove the backing field and let it use the new field keyword instead, nice and easy.
7. AsyncEnumerable is now part of the unified base class library. It used to be separately hosted as System.Linq.Async. When migrating make sure you remove the old Nuget package to make sure it does not cause ambiguity.
Still going through/prioritizing and testing from the compatibility list. Will update overtime - hope it helps those deciding to migrate.
https://www.reddit.com/r/dotnet/s/uQh46fQnz0
@ever_code
Breaking & Noteworthy Changes For .NET 10 Migration
1. IWebhost is officially obsolete, so you will need to use IHost moving forward - legacy apps (even up to .NET 9) could be using it without showing warnings. And if you have <TreatWarningsAsErrors>true</TreatWarningsAsErrors> set, this would be a breaking change, but a fairly simple fix nevertheless.
2. dotnet restore now audits transitive packages by default, not just direct dependencies like before. Once again, If you have <TreatWarningsAsErrors>true</TreatWarningsAsErrors> set, then this could be a potential blocker, so something to be aware of for sure - as you might need to look for another library, postpone or other.
3. Starting with .NET 10, Microsoft’s official Docker images will begin to use Ubuntu as their base operating system, instead of Debian or Alpine. This could introduce behavioral changes so be aware of it.
4. Span<T> and ReadOnlySpan<T> now supports implicit conversion, which could cause ambiguity in certain cases. Something to keep in mind as well.
5. dotnet new sln creates the new .slnx format by default, which shouldn't really be an issue, but is a good reminder to migrate projects from the older format to the newer XML-based format introduced in .NET 9 release. One of the favorite updates.
6. Field-backed properties/field keyword - this one shouldn't really be a problem unless some properties have a backing field called field, and even then, simply remove the backing field and let it use the new field keyword instead, nice and easy.
7. AsyncEnumerable is now part of the unified base class library. It used to be separately hosted as System.Linq.Async. When migrating make sure you remove the old Nuget package to make sure it does not cause ambiguity.
Still going through/prioritizing and testing from the compatibility list. Will update overtime - hope it helps those deciding to migrate.
https://www.reddit.com/r/dotnet/s/uQh46fQnz0
@ever_code
- ❤ 4







