use mvc in asp.net core 3.1 code example Example: upgrade .net core 2.2 to 3.1 { "sdk": { "version": "3.0.100" } }