Last post Jul 22, 2020 02:37 AM by Evern
Jul 13, 2020 04:40 PM|lasse11|LINK
I try to create asp net core project with 1) my computer (I think newest version asp net core 3.1 SDK) and same project
2) with core 2.2.
Why startup.cs Configure default settings are different?
1) When I create project with my own computer, i'll get Configure settings like this:
2) And when I create project with asp net core 2.2 SDK, I get this Configure (default) settings:
Here is the tutorial (and settings) where this 2) example is made: https://www.youtube.com/watch?v=ydR2jd3ZaEA
Jul 13, 2020 06:19 PM|mgebhard|LINK
You created an empty ASP.NET project. I think you should start with the MVC or Razor Page templates. Please see the Getting Started tutorials on this site.
Jul 13, 2020 07:27 PM|bruce (sqlwork.com)|LINK
every time asp.net core changes major versions, there can be many changes, even breaking. see the migration guide to go from 2.2, to 3.0 to 3.1
the templates typically match the current best practice. 3.1 switched to endpoint routing. the .Run has been moved to the program.cs
public static void Main(string args)
Jul 14, 2020 05:06 PM|lasse11|LINK
Jul 22, 2020 02:37 AM|Evern|LINK
In different versions, some details will be changed due to the improvement of a certain function. If you encounter problems during the use of the new version, you can check the changes of a certain function in the official documentation, or you can click
the link https://github.com/dotnet/aspnetcore, you can feedback to the official according to the bug encountered during the development process.