Bhanu Chhabra

The quiet week: why I upgrade .NET between Christmas and New Year

.NET ships in November. By late December the first patch is out, the office is quiet and merges are frozen. That week became my upgrade window.

Bhanu Chhabra, . 13 minute read

Every year, somewhere between Christmas and New Year, I upgrade things. Most of the teams I work with are in the UK and the US, and their organisations observe a code freeze over the holidays. I work from India, so for me that week is a normal working week with no meetings, no reviews waiting on me and nobody waiting on my branch.

I could spend it on small tickets. A few years ago I decided to spend it on something with more impact, and I’ve done it in that December window every year since. I get dedicated time, and expectations are low anyway in that period.

How it started

My liking for upgrades began earlier, at a company where I was building a smart-forms automation system. The job was to move it from .NET Core 2.x to 3.x. If you did that migration you’ll remember it: the web stack moved onto the generic host, IHostingEnvironment became IWebHostEnvironment, routing moved to endpoints, and the Startup constructor stopped accepting your own services [1][2].

The process was manual. Change the target framework, upgrade the Microsoft packages, then build, build, build and see what fails. Microsoft packages broke, Entity Framework included. IdentityServer broke. The most interesting failures were four or five levels down the dependency graph, where a third-party package still pulled in an older Microsoft package that nobody had upgraded.

Fixing each error taught me how the framework works inside, the DI system above all. The generic host builds one container where the old web host built two, which is why the Startup constructor got stricter [1]. You learn that properly when your app won’t start.

I kept doing upgrades at every company after that. The quiet-week part started at the next one, a data and analytics organisation. The job was .NET Core 3.x to .NET 5 and Angular 8 to 11, across the four backend services my team owned and six Angular frontends. The frontends ran as micro-frontends: on page load, the shell fetched each frontend’s bundle from the server and loaded it lazily. Merges to the main line were frozen for the holidays. Feature branches were not.

So I took the work on, alone, on feature branches. I finished sooner than I expected, picked up the small tickets assigned to me for that period anyway, and when the team came back the tech lead, the architects and my peers reviewed the changes. It passed every check, as far as I remember. It also became the template for every upgrade after it, at least for future me.

Why the calendar works

I didn’t choose the week because of .NET. That only hit me later. A new .NET ships every November and its first patch lands in early December, so by the time my quiet week comes round, the release is fresh and already patched. It felt like the universe conspiring in my favour, or at least the programming gods. The less mystical version is that two calendars line up at the end of the year:

  • A new major version of .NET ships every November, and patches ship on Patch Tuesday, the second Tuesday of each month [3].
  • The first patch follows about a month after release. .NET 10 shipped in November 2025 and 10.0.1 arrived on 9 December 2025 [4]. If the pattern holds, .NET 11’s first patch is due on Tuesday 8 December 2026.
  • By the last week of December the release has had six weeks in the wild. The first round of fixes is out, and most libraries you depend on have shipped a compatible version.
  • Then the freeze starts, and the week belongs to whoever wants it.
.NET
November: 10 Nov.NET 11 ships
November: 10 Nov.NET 8 and 9 reach end of support
December: 8 DecPatch Tuesday: 11.0.1 expected
January: 12 JanPatch Tuesday
The office
December: Code freeze starts: merges to main stop
24 Dec to 1 Jan, the quiet week: No meetings, no reviews waiting
January: Freeze lifts
Me
24 Dec to 1 Jan, the quiet week: Upgrade on feature branches
January: Team reviews the branches
January: Merge and roll out
Figure 1. The quiet week as a board. Lanes show who acts and columns show time. The upgrade sits where .NET has shipped its first patch and the office has stopped.

Angular now lines up too. It used to ship a major version every six months; from version 22 it ships one every 12 months, and each major is supported for about two years [5]. Both stacks move about once a year, so one window a year can cover both.

Which release to take

When the product was internal, still being built and had no live customers, we took .NET 5, a short-term release. The architects wanted us to stay ahead of the curve, and with no customers on it the risk was worth taking.

My current product is live, so I take only long-term (LTS) releases. This December that means moving from .NET 8 to .NET 10.

The rules shifted recently in a way worth knowing. Since .NET 9, short-term releases get 24 months of support instead of 18 [6]. As a result, .NET 10 (LTS) and .NET 11 (short-term) both reach end of support on 14 November 2028 [3]. On support dates alone, the old “LTS only” rule lost its edge this cycle. I still take LTS for a live product.

Doing nothing is also an option, and this year it has a date on it. .NET 8 and .NET 9 both reached end of support on 10 November 2026 [7]. From that day there are no more security patches for either.

.NET 8 LTS
released Nov 2023, ends 10 Nov 2026
.NET 9 STS
released Nov 2024, ends 10 Nov 2026
.NET 10 LTS
released Nov 2025, ends 14 Nov 2028
.NET 11 STS
released Nov 2026, ends 14 Nov 2028
Figure 2. Support windows for .NET 8 to 11. Since .NET 9, short-term releases get 24 months, so .NET 10 and .NET 11 end on the same day, and .NET 8 and 9 ended together this November [3][6].

Run it as a programme

One service is a task. Many services across teams are a programme, and the first upgrade at that data and analytics organisation is where I learned the difference.

Start with an inventory

Before changing anything, find out what you have: target frameworks, the SDK each repository pins, the container base images and the shared libraries everything depends on. I run something like this across a folder of repositories (PowerShell 7):

param(
    [Parameter(Mandatory)] [string] $Root,
    [string] $OutFile = 'dotnet-inventory.csv'
)

# bin, obj and node_modules are build output; scanning them is slow and misleading.
$skip = '[\\/](bin|obj|node_modules)[\\/]'

$rows = foreach ($repo in Get-ChildItem -Path $Root -Directory) {
    $globalJson = Join-Path $repo.FullName 'global.json'
    # The SDK pin decides which compiler CI uses, so it belongs in the inventory.
    $sdk = if (Test-Path $globalJson) {
        (Get-Content $globalJson -Raw | ConvertFrom-Json).sdk.version
    }

    $images = Get-ChildItem $repo.FullName -Recurse -File -Filter 'Dockerfile*' |
        Where-Object FullName -notmatch $skip |
        Select-String -Pattern '^\s*FROM\s+(\S+)' |
        ForEach-Object { $_.Matches[0].Groups[1].Value }

    $projects = Get-ChildItem $repo.FullName -Recurse -File -Filter '*.csproj' |
        Where-Object FullName -notmatch $skip

    foreach ($proj in $projects) {
        [xml] $xml = Get-Content $proj.FullName -Raw
        $groups = $xml.Project.PropertyGroup
        # One framework or several. $(AppTargetFramework) or a blank means Directory.Build.props sets it.
        $tfm = @($groups.TargetFramework) + @($groups.TargetFrameworks) |
            Where-Object { $_ } | Select-Object -First 1

        [pscustomobject]@{
            Repository = $repo.Name
            Project    = $proj.Name
            Framework  = $tfm ?? '(inherited)'
            Sdk        = $sdk ?? '(not pinned)'
            BaseImages = ($images | Sort-Object -Unique) -join '; '
        }
    }
}

$rows | Export-Csv -Path $OutFile -NoTypeInformation
Write-Host "Wrote $(@($rows).Count) projects to $OutFile"

The output is a spreadsheet you can sort by framework. It tells you the size of the job before you promise anyone a date.

Then look at the graph you didn’t choose

The direct references are the easy part. My 2.x to 3.x lesson was that the trouble sits deeper. NuGet resolves conflicts with a “nearest wins” rule, so an old version four levels down can stay old, or get pulled backwards, without anyone deciding it. The SDK reports a downgrade as NU1605 and treats it as an error [8][9].

Today the tools make this visible. dotnet package list --include-transitive shows the whole graph, dotnet nuget why shows the path that brought a package in, and for projects targeting .NET 10, dotnet restore audits transitive packages for known vulnerabilities by default [10][11][12].

Order the work

Shared libraries and templates go first, because everything else consumes them. Leaf services follow. I keep the scope to what my team owns and tell the owners of everything else what I found. Upgrading another team’s service while they’re on holiday is a good way to start January with an argument.

Make next year cheaper

What the week should leave behind is an “after” state that turns next year’s upgrade into a handful of one-line changes. Three files at the repository root do most of it:

{
  "sdk": {
    "version": "10.0.100",
    "rollForward": "latestFeature"
  }
}
<Project>
  <PropertyGroup>
    <!-- The line that changes every upgrade. Projects opt in with $(AppTargetFramework). -->
    <AppTargetFramework>net10.0</AppTargetFramework>
  </PropertyGroup>
</Project>
<Project>
  <PropertyGroup>
    <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
    <!-- Lift a package that sits four levels down without touching every project. -->
    <CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
  </PropertyGroup>
  <ItemGroup>
    <PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer" Version="10.0.0" />
    <PackageVersion Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.0" />
  </ItemGroup>
</Project>

global.json pins the SDK, so a developer installing a new Visual Studio doesn’t change what CI builds [13][14]. Directory.Build.props holds the target framework once, as a property each project opts into. Setting TargetFramework itself in that file looks simpler, but every project inherits it as a default, and a project that sets TargetFrameworks then builds for that one inherited framework only [27][28]. A shared library that still serves older consumers would lose its netstandard2.0 build, and nothing would fail to tell you. With the named property, an app project sets <TargetFramework>$(AppTargetFramework)</TargetFramework>, and a library lists what it needs:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <!-- Older apps still consume this, so netstandard2.0 stays next to the current target. -->
    <TargetFrameworks>$(AppTargetFramework);netstandard2.0</TargetFrameworks>
  </PropertyGroup>
</Project>

Directory.Packages.props holds every package version once, and transitive pinning lets you lift a deep dependency to a version you chose [15]. One caveat for library authors: when you pack, pinned transitive packages become explicit dependencies of your package [15].

Upgrading safely during a freeze

Working alone with nobody to review is the part an experienced reader should question.

Tests do the reviewing during the week. The rule at that organisation was 80% coverage on every check-in and overall, and people followed it with intent. In code review we read the test cases first. That is why I could trust a green build on my own. Without tests I’d have been running almost blind.

End-to-end tests catch what the compiler can’t. With micro-frontends loaded at runtime, the shell and each frontend have to agree on the framework version. If they don’t, the page fails in the browser, after every build has passed. Ours lived in one monorepo, so all six moved to Angular 11 together, and the end-to-end tests proved the pieces still fitted.

Run the whole system locally. The services ran on Kubernetes and I could run the entire application on my machine. The contracts between frontend and services were API-driven, so each side could change without breaking the other.

People review before anything merges. Nothing reached the main line during the freeze. When the team came back, the tech lead, the architects and my peers reviewed the branches as they would any change, and it merged after that.

Read two lists when you skip a version

Moving from .NET 8 to .NET 10 skips .NET 9, so read both breaking-change lists [16][17]. A few that are easy to miss:

  • BinaryFormatter always throws from .NET 9 [18].
  • WebHostBuilder, IWebHost and WebHost are obsolete in ASP.NET Core 10 [19].
  • BackgroundService now runs all of ExecuteAsync in the background. Code before the first await used to run during start-up and block other services; if you relied on that, move it to StartAsync or the constructor [20].
  • The default .NET container images use Ubuntu from .NET 10 [17].
  • If warnings are errors in your build, new analyzer warnings and the transitive NuGet audit findings will fail it [12].

Let the tooling take the first pass

My first upgrades were manual because there was nothing else. The tooling has caught up since, and it has already changed once. .NET Upgrade Assistant, the Visual Studio extension and CLI that analysed a project and applied common upgrade changes, is officially deprecated and no longer developed [21]. Its replacement is the GitHub Copilot upgrade agent. It ships with Visual Studio 2026 and Visual Studio 2022 from 17.14.17, and also runs in VS Code and the Copilot CLI [22][23]. In Visual Studio you right-click the solution and choose Modernize, or type @Modernize in Copilot Chat. It handles this year’s move: any project on .NET 5 or later to .NET 8 or later [22].

It works in three stages, and each stage leaves a file you can read and edit [24][25]:

  • Assessment (assessment.md) lists package versions, target framework options and API compatibility risks across the solution, including the breaking changes above.
  • Plan (plan.md) sets the order of the upgrade and how each issue will be handled. You can change it before any code changes.
  • Execution (tasks.md) works through the plan task by task and commits each change, so any step can be checked or rolled back on its own [21].

The files live in .github/upgrades/ in the repository, so the work can stop and resume across the week [25]. That suits the quiet week: the commits land on the feature branch, and in January the assessment and plan sit next to the diff. Reviewers can read the plan first, the same way we read the tests first.

At programme scale, custom upgrade instructions are the useful part [25]. Each one is a Markdown file describing a single transformation with explicit rules (“if the code references X, replace it with Y”), ideally with a diff taken from a real change. The agent picks them up during assessment. Work out a fix once, on the shared library that goes first, write it up as an instruction, and copy it into every repository that follows, so the agent applies the same fix everywhere.

The agent works on one solution at a time. The inventory across many repositories and the order of the work stay with you. It needs a GitHub Copilot subscription and sends your code to Copilot, so check your organisation’s policy before you point it at a client codebase [23]. Where Copilot isn’t allowed, the legacy Upgrade Assistant can still be switched on in Visual Studio’s options, with the understanding that nobody is developing it any more [26]. Its commits go through the same January review as any other change.

When not to

The quiet week works under some conditions, and I’d skip it without them.

  • Nobody to review afterwards. The week only works because a normal review happens in January. If it won’t, the branch waits.
  • Deploying during the freeze. I upgrade and test during the week. Releasing is for January, when people are around to notice a problem.
  • A freeze that covers branches too. Some regulated environments freeze everything. Respect that.
  • Your own rest. For me this is a normal working week. I take leave when I need to recharge, at other times of the year. If the quiet week would cost you your only break, take the break.

What it gives me

The first quiet week proved the approach, and every upgrade since has reused it. Each year the framework moves, I learn how another part of it works inside, and the codebase ends the year more current than it started.

Mostly, it’s fun. While everyone else’s calendar is empty, I get a week to do work I care about, and January starts with the upgrade already done.

References

  1. Breaking changes in .NET Core 3.0, Microsoft Learn. Back to text
  2. Migrate from ASP.NET Core 2.2 to 3.0, Microsoft Learn. Back to text
  3. .NET and .NET Core Support Policy, Microsoft. Back to text
  4. .NET and .NET Framework December 2025 servicing updates, .NET Blog. Back to text
  5. Angular versioning and releases, angular.dev. Back to text
  6. .NET STS releases supported for 24 months, .NET Blog. Back to text
  7. .NET 8 and .NET 9 will reach End of Support on November 10, 2026, .NET Blog. Back to text
  8. How NuGet resolves package dependencies, Microsoft Learn. Back to text
  9. NuGet Warning NU1605, Microsoft Learn. Back to text
  10. dotnet package list, Microsoft Learn. Back to text
  11. Auditing package dependencies for security vulnerabilities, Microsoft Learn. Back to text
  12. dotnet restore audits transitive packages, Microsoft Learn. Back to text
  13. global.json overview, Microsoft Learn. Back to text
  14. Upgrade to a new .NET version, Microsoft Learn. Back to text
  15. Central Package Management, Microsoft Learn. Back to text
  16. Breaking changes in .NET 9, Microsoft Learn. Back to text
  17. Breaking changes in .NET 10, Microsoft Learn. Back to text
  18. BinaryFormatter always throws, Microsoft Learn. Back to text
  19. Breaking changes in ASP.NET Core 10, Microsoft Learn. Back to text
  20. BackgroundService runs all of ExecuteAsync as a Task, Microsoft Learn. Back to text
  21. What is .NET Upgrade Assistant?, Microsoft Learn. Back to text
  22. What is GitHub Copilot upgrade?, Microsoft Learn. Back to text
  23. Install GitHub Copilot upgrade, Microsoft Learn. Back to text
  24. Use GitHub Copilot agents in Visual Studio, Microsoft Learn. Back to text
  25. Apply custom upgrade instructions for .NET upgrades, Microsoft Learn. Back to text
  26. Install .NET Upgrade Assistant, Microsoft Learn. Back to text
  27. MSBuild reference for .NET SDK projects: TargetFrameworks, Microsoft Learn. Back to text
  28. Customize the build by folder, Microsoft Learn. Back to text