3 ms·
Most of the changes are not _breaking_. There are new ways to do things but the old still works. You can have both an api controller and a minimal api in the sa
by jbergens 5y ago
Most of the changes are not _breaking_. There are new ways to do things but the old still works. You can have both an api controller and a minimal api in the same application. I agree that it is hard to know which version a specific blog post or tutorials works for.
- lbriner 5y agoThat's not true, there are a lot of breaking changes here: https://docs.microsoft.com/en-us/dotnet/core/compatibility/6.0 https://docs.microsoft.com/en-us/dotnet/core/compatibility/6... The problem is that Microsoft can never avoid the temptation to fix things that weren't that broken and leave it up to you to find the bugs later. Even a theoretical "non-breaking" change like adding some more constructors broke some of our code, previously, you could add ILoggerFactory really easily and it found a single default constructor in LoggerFactory and just worked. The new overloads cause most DI systems to look for the constructor with the most parameters, some of which are not available, and then fall over. MS need a better system for updates, every version has brought us a lot of headache although I can't really see us using anything else, which would be an enormous amount of work.