This site now updated to use .NET 6.0
by Patrick Lee on 23 Apr 2022 in categories tech with tags .NET 5.0 .NET 6.0I have just updated this site from .NET 5.0 (apart from an associated Azure function which was still .NET Core 3.1) to .NET 6.0 (for both the site and the function).
It wasn't very difficult to upgrade the web app project from .NET 5 to .NET 6 (just changing the target framework). but I also updated various Nuget packages and changed from Microsoft.Azure.Cosmos.Table (shown as deprecated) to Azure.Data.Tables, which took quite a bit of time. (Why do Microsoft make changes so often: the last time was < 2 years ago from Microsoft.WindowsAzure.Storage to Microsoft.Azure.Cosmos.Table, and with the code needing to change in a far from obvious way?)
I also had some problems with the function. Although it seemed to upgrade from .NET Core 3.1 to .NET 6 fine (after upgrading the functions SDK) and it built ok, I got an error at run time. I had to remove some extra tmp csproj file that was there, which seemed to maintain a link to .net core 2.2. After that it seemed to build and run ok.