Start United States USA — software ASP. NET Core Is in Trouble. Or Is it? ASP. NET Core...

ASP. NET Core Is in Trouble. Or Is it? ASP. NET Core Is in Trouble. Or Is it?

175
0
TEILEN

With the release of. NET Core, is ASP. NET Core in for hard times? One dev explains why he sees the ASP. NET Core and. NET Core frameworks as complimentary.
Currently ASP. NET Core – Microsoft’s new web framework – can be used on top of. NET Core and on top of the. NET Framework. This fact is pretty nice, because you are able to use all the new features of ASP. NET Core with the power of the huge but well known. NET Framework. On the other hand, the new cross-platform. NET Core is even nicer, but with a smaller set of features. Today you have the choice between of being x-plat or to use the full. NET Framework. This isn’t really bad.
Actually it could be better. Let’s see why:
Microsoft removed the support of the full. NET Framework for ASP. NET Core 2.0 and some developers are not really happy about that. See this Github Issue thread. ASP. NET Core 2.0 will just run on. NET Core 2.0. This fact resulted in a hot discussion within that GitHub issue.
While the discussion was running, David Fowler said on Twitter that it’s the best to think of ASP. NET Core 2.0 and. NET Core 2.0 as the same product .
Does this makes sense?
I followed the discussion and thought a lot about it. And yes, it starts to make sense to me.
What many people don’t recognize, or just forget about, is the. NET Standard. The. NET Standard is an API definition that tries to unify the APIs of. NET Core, . NET Framework, and Xamarin. But it actually does a little more, it provides the API as a set of Assemblies, which forwards the types to the right Framework.
Does this make sense to you? (Read more about the. NET Standard in this documentation) .
Currently ASP. NET Core runs on top of. NET Core and. NET Framework, but actually uses a framework that is based on. NET Standard 1.4 and higher. All the referenced libraries, which are used in ASP. NET Core are based on. NET Standard 1.4 or higher. Let’s call them „. NET Standard libraries.“ These libraries contain all the needed features, but doen’t reference a specific platform other than the. NET Standard API.
You are also able to create those kinds of libraries with Visual Studio 2017.
By creating such libraries you provide your functionality to multiple platforms like Xamarin, . NET Framework, and. NET Core (depending on the. NET Standard Version you choose) . Isn’t that good?
And in. NET Framework apps you are able to reference. NET Standard based libraries.
. NET Core is just a runtime to run Apps on Linux, Mac, and Windows. Let’s see the full. NET Framework as a runtime to run WPF apps, Winforms apps, and classic ASP. NET apps on Windows. Let’s also see Xamarin as a runtime to run apps on iOS and Android.
Let’s also assume, that the. NET Standard 2.0 will provide the almost full API of the. NET Framework to your application, if it is finished.
Do we really need the full. NET Framework for ASP. NET Core, in this case? No, we don’t really need it.
Do we really need the full. NET Framework as a runtime for ASP. NET Core?
I think not!
Does it also makes sense to use the full. NET Framework as a runtime for Xamarin Apps?
I also think not!
ASP. NET Core and. NET Core shouldn’t really be shipped as one product, as David suggested. As it is on top of. NET Core, perhaps another technology could also be on top of. NET Core in the future. But maybe it makes sense to ship it as one product, to tell the people that ASP. NET Core 2.0 is based on top of. NET Core 2.0 and needs the. NET Core runtime (the classic ASP. NET is also shipped with the full. NET Framework) .
Given these facts, Microsoft’s decision to run ASP. NET Core 2.0 on. NET Core 2.0 only doesn’t sound that evil anymore.
What do you think? Do you agree?
Let’s see what Microsoft will tell us about it at the Microsoft Build conference in the next days. Follow the live stream: https: //channel9.msdn.com/Events/Build/2017

Continue reading...