Update repository to .NET 9.0 - standardize SDK version and Docker images #781
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
This PR updates the repository to use .NET 9.0 with standardized configurations across all components. The repository was already using .NET 9.0 for most parts, so only minimal changes were needed to ensure consistency.
Changes Made
Updated
global.json:9.0.101to9.0.100(base release version)"latestMinor"to"latestPatch"for more conservative updatesUpdated
EssentialCSharp.Web/Dockerfile:mcr.microsoft.com/dotnet/sdk:9.0.305tomcr.microsoft.com/dotnet/sdk:9.0to use the generic tagWhat Was Already Compliant
net9.0global-json-file: global.jsonconfigurationBuild Verification
All builds and tests continue to work successfully:
dotnet restorecompletes successfully (1.1s)dotnet build --configuration Releasecompletes successfully (2.3s)dotnet testruns 54/55 tests successfully (1 test fails due to external network connectivity, unrelated to .NET upgrade)The single test failure is
CaptchaService_Verify_Successwhich fails due to network connectivity toapi.hcaptcha.com:443in the CI environment - this is an existing external dependency issue unrelated to the .NET 9.0 update.Notes
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
api.hcaptcha.com/usr/share/dotnet/dotnet exec --runtimeconfig /home/REDACTED/work/EssentialCSharp.Web/EssentialCSharp.Web/EssentialCSharp.Web.Tests/bin/Release/net9.0/EssentialCSharp.Web.Tests.runtimeconfig.json --depsfile /home/REDACTED/work/EssentialCSharp.Web/EssentialCSharp.Web/EssentialCSharp.Web.Tests/bin/Release/net9.0/EssentialCSharp.Web.Tests.deps.json /home/REDACTED/work/EssentialCSharp.Web/EssentialCSharp.Web/EssentialCSharp.Web.Tests/bin/Release/net9.0/testhost.dll --port 37057 --endpoint 127.0.0.1:037057 --role client --parentprocessid 5605 --telemetryoptedin false(dns block)If you need me to access, download, or install something from one of these locations, you can either:
This pull request was created as a result of the following prompt from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.