Skip to content

Conversation

@devin-ai-integration
Copy link

NET-15: Create .NET Core 6 Web Application Project in SampleWebApp.Core

Summary

This PR implements the first step in migrating the SampleMvcWebApp from .NET Framework 4.5.1 to .NET 6 by creating a new SampleWebApp.Core project with the proper SDK-style project structure and configuration. This establishes the foundation for future migration work, without yet migrating any actual functionality from the legacy application.

Key changes:

  • Created new SampleWebApp.Core project using SDK-style csproj targeting .NET 6.0
  • Enabled nullable reference types and implicit usings
  • Set up standard folder structure (Controllers/, Views/, Models/, wwwroot/)
  • Created Program.cs with minimal hosting model
  • Added environment-specific configuration files (Development, Staging, Production)
  • Created launch settings with profiles for all environments
  • Added project to the existing solution

Review & Testing Checklist for Human

  • Verify the project follows .NET 6 SDK-style project structure and best practices
  • Confirm the minimal hosting model in Program.cs is correctly implemented
  • Check that environment configurations are appropriate (Development, Staging, Production)
  • Verify the project builds successfully with dotnet build SampleWebApp.Core/SampleWebApp.Core.csproj

Notes

This PR implements ticket NET-15 which specifies creating the .NET 6 project structure only, without migrating any functionality yet. All required files have been created following the modern .NET 6 conventions.

Note that attempting to build the full solution with legacy .NET Framework projects may fail on Linux/Mac, but the new .NET 6 project should build successfully on its own using the dotnet CLI.

Requested by: ben-windsurf (@ben-windsurf)
Link to Devin run: https://app.devin.ai/sessions/33d579768cba4ca8a4a3a605f258d214

- Created SampleWebApp.Core project with SDK-style .csproj targeting net6.0
- Enabled nullable reference types and implicit usings
- Created folder structure: Controllers/, Views/, Models/, wwwroot/
- Created Program.cs using minimal hosting model
- Created appsettings.json and environment-specific variants (Development, Staging, Production)
- Created Properties/launchSettings.json with profiles for all environments
- Added project to SampleWebApp.sln
- Verified project builds successfully with dotnet build

Co-Authored-By: ben.lehrburger@windsurf.com <ben.lehrburger@windsurf.com>
@devin-ai-integration
Copy link
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

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.

1 participant