-
Notifications
You must be signed in to change notification settings - Fork 250
Update samples to dotnet 10 #431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates all sample projects from .NET 8 to .NET 10, aligning with the latest framework version and Visual Studio project templates. The changes include framework target updates, package version bumps, and modernized static asset handling.
Key changes:
- Updated target framework from net8.0 to net10.0 across all projects
- Upgraded dependency package versions (ASP.NET Core, EF Core, MongoDB, Cosmos DB, MySQL)
- Modernized static file handling using new
MapStaticAssets()andWithStaticAssets()APIs - Updated project templates to match VS defaults (launch settings, CSS, validation scripts)
Reviewed changes
Copilot reviewed 42 out of 1009 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| **/*.csproj | Updated TargetFramework to net10.0 and package versions |
| **/Directory.Build.props | Updated AspNetCoreVersion and EFCoreVersion to 10.0.* |
| **/Program.cs | Replaced UseStaticFiles() with MapStaticAssets() and added WithStaticAssets() |
| **/launchSettings.json | Updated schema URL to HTTPS and removed IIS Express profiles |
| **/README.md | Updated documentation references from .NET 8 to .NET 10 SDK |
| **/*.feature | Updated test scenarios from net8.0 to net10.0 |
| **/css/site.css | Added new form-floating placeholder styles |
| **/_Layout.cshtml | Added empty importmap script tag |
| **/_ValidationScriptsPartial.cshtml | Updated jquery-validation-unobtrusive path to include /dist/ |
| Configuration/src/ConfigurationProviders/appsettings.json | Renamed configuration key for clarity |
| Configuration/src/ConfigurationProviders/Views/Home/PlaceholderValues.cshtml | Updated to display PATH variable with platform-specific formatting |
| .github/workflows/shared-test-workflow.yml | Updated dotnet-version to 10.0.* |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Configuration/src/ConfigurationProviders/Views/Home/PlaceholderValues.cshtml
Outdated
Show resolved
Hide resolved
Configuration/src/ConfigurationProviders/Views/Home/PlaceholderValues.cshtml
Outdated
Show resolved
Hide resolved
|
@bart-vmware I've opened a new pull request, #432, to work on those changes. Once the pull request is ready, I'll request review from you. |
465b166 to
b195866
Compare
…figure the absolute URL to register with
* Initial plan * Fix XSS vulnerability by HTML-encoding before replacing delimiters Co-authored-by: bart-vmware <[email protected]> * Remove unnecessary null-conditional operator after Html.Encode Co-authored-by: bart-vmware <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: bart-vmware <[email protected]>
b195866 to
768a053
Compare
Updates all sample projects to .NET 10 and updates package versions. Synced up with changes in VS project templates.
I've tested running the samples:
I'd like to get this merged before further testing on Dhaka, so we can run our integration tests on it.
To review, I recommend skipping the
wwwrootdirectories. I replaced their contents with the files from the updated VS project templates. One notable template change is that files inwwwroot/lib/jquery-validation-unobtrusivehave moved into adistsubdirectory (presumably to align with how the other libs are organized).