Skip to content

Conversation

@bart-vmware
Copy link
Member

@bart-vmware bart-vmware commented Dec 17, 2025

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:

  • locally on Windows: everything works
  • Hyperion: all samples for which tiles are available work (pushed Linux binaries)
  • Dhaka: most works using pushed Windows binaries; testing is still in progress

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 wwwroot directories. I replaced their contents with the files from the updated VS project templates. One notable template change is that files in wwwroot/lib/jquery-validation-unobtrusive have moved into a dist subdirectory (presumably to align with how the other libs are organized).

@bart-vmware bart-vmware requested a review from Copilot December 17, 2025 12:13
Copy link

Copilot AI left a 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() and WithStaticAssets() 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.

Copy link

Copilot AI commented Dec 17, 2025

@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.

@bart-vmware bart-vmware force-pushed the update-samples-to-dotnet-10 branch from 465b166 to b195866 Compare December 18, 2025 10:29
@bart-vmware bart-vmware changed the base branch from main to fix-discovery-cf December 18, 2025 10:30
@bart-vmware bart-vmware marked this pull request as ready for review December 18, 2025 12:21
@bart-vmware bart-vmware requested a review from TimHess December 18, 2025 12:21
Base automatically changed from fix-discovery-cf to main December 18, 2025 15:19
bart-vmware and others added 21 commits December 19, 2025 17:18
* 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]>
@bart-vmware bart-vmware force-pushed the update-samples-to-dotnet-10 branch from b195866 to 768a053 Compare December 19, 2025 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants