Skip to content

Code samples for the DevUp conference presentation: Don't skip the hard parts - migrating old .net apps

License

Notifications You must be signed in to change notification settings

KSchlobohm/devup-dont-skip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Don't skip the hard parts - migrating old .net apps

Migration is hard, going at it alone is harder. My team at Microsoft has spent years working with customers - we heard one message loud and clear: please don't skip the hard parts when you offer migration guidance.

Getting Started

Run the app and observe the CRUD operations for ODE to Food an MVC web app with a Web API backend that uses an in-memory dataset.

  1. Restore the DotNetCompilerPlatform package.

    Use the Package Manager Console to run the following command for both ASP.NET web projects.

    Update-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform -r

    #image of Package Manager Console command

  2. Set multiple startup projects

    #image showing that two start up projects should be selected

    https://learn.microsoft.com/en-us/visualstudio/ide/how-to-set-multiple-startup-projects?view=vs-2022

  3. Start the solution and view the Restaurants page

    #image of the restaurants page

    You are now ready to use the Pull Requests to learn about how to apply Configuration Builders for External Configuration and Polly to build reliable service communication.

    Note
    For ASP.NET Core web apps we recommend learning about the new Microsoft Extensions packages. Watch Brady Gaster introduce them at BUILD 2023 in his talk Cloud-native development with .NET 8 | BRK201H.

Additional resources

Troubleshooting

Tips for dealing with issues.

Server Error: Could not find a part of the path #image of runtime roslyn csc.exe error

  • Use the Package Manager Console to run the following command for both ASP.NET web projects.
Update-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform -r

Server Error: No connection could be made #image of runtime connection error

  • Configure the solution to set both web apps as startup projects.

About

Code samples for the DevUp conference presentation: Don't skip the hard parts - migrating old .net apps

Resources

License

Stars

Watchers

Forks