Migrate from .NET Core 1.1 to .NET 10#1
Closed
karluiz wants to merge 5 commits into
Closed
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Owner
Author
|
Runtime verification notes (full CRUD pass done against local MongoDB, all green):
🤖 Generated with Claude Code |
There was a problem hiding this comment.
Pull request overview
Migrates the solution from .NET Core 1.1 to .NET 10, updates MongoDB.Driver to 3.x, and modernizes the ASP.NET Core MVC host and legacy tooling/config to match current .NET conventions.
Changes:
- Retarget GR.Repository / GR.Services / GR.Mvc to
net10.0, pin SDK viaglobal.json, and update MongoDB.Driver to 3.9.0 with an overload-disambiguation adjustment. - Replace the
Program/Startuphosting model with minimal hosting and remove legacy ASP.NET Core package/tooling references (Application Insights snippet, BrowserLink, CodeGeneration CLI tool). - Remove bower/bundler config files and update Razor environment tag helper usage plus logging / launch settings.
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| GR.Services/GR.Services.csproj | Retargets services project to net10.0 and disables nullable/implicit usings. |
| GR.Repository/GR.Repository.csproj | Retargets repository project to net10.0 and upgrades MongoDB.Driver to 3.9.0. |
| GR.Repository/Repository.cs | Adjusts MongoDB ReplaceOneAsync call for new overload behavior. |
| GR.Mvc/GR.Mvc.csproj | Retargets MVC app to net10.0 and removes legacy package/tool refs now covered by the shared framework. |
| GR.Mvc/Program.cs | Replaces Startup-based hosting with minimal hosting pipeline and DI registration. |
| GR.Mvc/Startup.cs | Deleted as part of minimal hosting migration. |
| GR.Mvc/appsettings.json | Updates logging schema and changes base MongoDB connection string value. |
| GR.Mvc/appsettings.Development.json | Updates logging schema (drops legacy IncludeScopes). |
| GR.Mvc/Properties/launchSettings.json | Simplifies launch profiles and standardizes local URL. |
| GR.Mvc/Views/Shared/_Layout.cshtml | Removes Application Insights snippet and updates environment tag helper attributes. |
| GR.Mvc/Views/Shared/_ValidationScriptsPartial.cshtml | Updates environment tag helper attributes to modern syntax. |
| GR.Mvc/.bowerrc | Deleted (removes bower-era config). |
| GR.Mvc/bower.json | Deleted (removes bower-era dependency manifest). |
| GR.Mvc/bundleconfig.json | Deleted (removes BundlerMinifier configuration). |
| global.json | Pins repository SDK selection to .NET SDK 10.0.101. |
| docs/superpowers/plans/2026-06-11-migrate-to-net10.md | Adds migration implementation plan documentation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| var idFilter = Builders<T>.Filter.Eq(e => e.Id, entity.Id); //Find entity with same Id | ||
| var result = await Collection.ReplaceOneAsync(idFilter, entity, null, cancellationToken); | ||
| var result = await Collection.ReplaceOneAsync(idFilter, entity, (ReplaceOptions)null, cancellationToken); |
Comment on lines
+15
to
18
| if (!app.Environment.IsDevelopment()) | ||
| { | ||
| app.UseExceptionHandler("/Home/Error"); | ||
| } |
|
|
||
| "ConnectionStrings": { | ||
| "MongoConnectionString": "{your mongodb connection string here}" | ||
| "MongoConnectionString": "mongodb://localhost:27017/GR" |
Comment on lines
+1
to
5
| { | ||
| "Logging": { | ||
| "IncludeScopes": false, | ||
| "LogLevel": { | ||
| "Default": "Debug", | ||
| "System": "Information", |
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Test Plan
dotnet build GR.Mvc.sln— 0 warnings, 0 errors/Home/Aboutreturns 200🤖 Generated with Claude Code