Let’s improve my most important website and podcast to .NET 6 LTS

0
1

3098

3098
3098 3098
3098 3098

3098 .NET 6 3098 is launched and it 3098 is a LTS launch which 3098 suggests it will be totally 3098 and actively supported for the 3098 subsequent 3 years. For those 3098 who’ve been paused ready for 3098 the precise time to improve 3098 to .NET 6, it is 3098 a good time to make 3098 the transfer!

3098

3098 Proper now, 3098 Hanselman.com 3098 and 3098 Hanselminutes.com 3098 (my podcast) are working 3098 on some model of .NET 3098 5. You’ll be able to 3098 se by visiting them and 3098 scrolling to the very backside 3098 within the footer as I’ve 3098 3098 added a git commit hash 3098 and Azure DevOps Construct Quantity 3098 and Construct ID to an 3098 ASP.NET web site 3098 and I am utilizing 3098 3098 RuntimeInformation.FrameworkDescription 3098 to output the plain 3098 textual content model of .NET 3098 I am utilizing. This weblog 3098 is on .NET Core 3.0 3098 which is an LTS launch 3098 however I will be working 3098 with Mark Downie this week 3098 to maneuver it to .NET 3098 6 LTS as he is 3098 already obtained his occasion of 3098 dasBlog working on 6!

© Copyright 2021, Scott Hanselman. Design by @jzy, Powered by .NET 5.0.10 and deployed from commit e5058e via build 20210920.3

3098

3098 OK, let’s have a look 3098 at what’s concerned. Let’s begin 3098 with my podcast website. I’ve 3098 obtained the code on GitHub 3098 and working domestically with “dotnet 3098 run” on the command line 3098 in each Linux and Home 3098 windows. I can run the 3098 “dotnet improve assistant” which is 3098 nice, however I additionally wish 3098 to drive stick shift generally 3098 for smaller initiatives.

3098

3098 I will replace my TargetFramework 3098 in my csproj undertaking file 3098 from net5.0 to net6.0 and 3098 replace the main PackageReferences from 3098 5.0.0 to six.0.0. It compiles.

3098

3098 Optionally, I will additionally run 3098 3098 dotnet outdated 3098 ” which is considered one 3098 of my favourite instruments. You 3098 may wish to be sure 3098 you have a stable check 3098 suite and never simply do 3098 that with out testing.

dotnet outdated tells me which packages need updating

3098

3098 I see that a few 3098 of these are main adjustments 3098 so I can do a 3098 diff of those packages with 3098 various instruments, however my favourite 3098 is 3098 FuGet.org 3098 (Thanks Frank!) so I 3098 can do a 3098 diff between the alpha model 3098 of Selenium I am utilizing 3098 and the launched see 3098 that the RemoteLogs sort is 3098 now known as Logs.

3098

3098 I may also replace my 3098 Dockerfile and alter variations like 3098 this

 3098 FROM mcr.microsoft.com/dotnet/sdk:6.0 as construct

3098

3098 and

 3098 FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS runtime

3098

3098 I will verify that these 3098 photos construct and check. I 3098 additionally run my exams optionally 3098 inside a container in order 3098 that’s good.

3098

3098 A few of my websites 3098 use Azure DevOps and others 3098 use GitHub Actions. Each use 3098 YAML (yay) to handle their 3098 config, so I will replace 3098 my UseDotNet activity in Azure 3098 DevOps YAML to model: “6.0.x”

3098

3098 I will commit and begin 3098 constructing within the cloud!

 3098 Modifications to be dedicated:
3098 (use "git restore --staged <file>..." 3098 to unstage)
3098 modified: Dockerfile
3098 modified: azure-pipelines.yml
3098 modified: hanselminutes.core.exams/SeleniumTests.cs
3098 modified: hanselminutes.core.exams/hanselminutes.core.exams.csproj
3098 modified: hanselminutes.core/Startup.cs
3098 modified: hanselminutes.core/hanselminutes-core.csproj

3098 $ git commit -m "improve 3098 to .internet 6"

3098

3098 I may also verify that 3098 my Azure App Service is 3098 about to .NET 6, however 3098 that is solely wanted if 3098 I am NOT working in 3098 a Docker Container or if 3098 I am NOT utilizing a 3098 self-contained executable.

3098

3098 Now I repeat this for 3098 my podcast and most important 3098 website and I am now 3098 on .NET 6! The weblog 3098 (a bigger improve) is subsequent.

3098


3098

3098 Sponsor: 3098 Lob’s developer-friendly APIs make it 3098 straightforward to ship a letter, 3098 verify, or postcard, as simply 3098 as e mail. Design dynamic 3098 HTML templates to personalize mail 3098 for max impression. 3098 Begin Exploring with Postman!

3098



3098 3098

3098
3098 3098 3098

3098
3098 3098 3098 3098

3098 About Scott

3098
3098 3098 3098 3098

3098
3098 3098 3098 3098

3098 Scott Hanselman is a former 3098 professor, former Chief Architect in 3098 finance, now speaker, marketing consultant, 3098 father, diabetic, and Microsoft worker. 3098 He’s a failed stand-up comedian, 3098 a cornrower, and a e-book 3098 creator.

3098
3098 3098 3098 3098 facebook 3098
3098 3098 3098 3098 twitter 3098
3098 3098 3098 3098 subscribe
3098
3098 3098 3098 3098 3098 About 3098   3098 Publication 3098
3098 3098 3098 3098

3098
3098 3098 3098

3098

3098 3098 3098

3098
3098 3098 3098 3098

3098
3098 3098 3098 3098 3098 Internet hosting By
3098
3098 3098 3098 3098 Hosted in an Azure App Service 3098
3098 3098 3098 3098

3098

3098 3098 3098

3098
3098 3098

3098

3098 3098


3098 3098

3098 3098 3098
3098

3098

LEAVE A REPLY

Please enter your comment!
Please enter your name here