Asked by:
Curiosity about primarily using C# (probably sans ASP.NET) and where / how does the C# language + libs couple / decouple?

Question
-
I'm interested in potentially working as far outside of the Microsoft ecosystem as possible while still using C#. For example, I'd like to develop a framework that can pick and choose which libraries I'd want to use while being able to run in a fairly independent fashion (ie, run on Linux, macOS, anywhere) and in a very opinionated manner.
What's the bear minimum that's needed to run C# as a base language?
Let's say, for example, that I wanted to develop something via C# like Ruby on Rails or Sinatra (this is not the actual use-case but is a good illustration) that pulls in any support "gems" (dependency libraries) in and then runs atop a web server (such as WEBrick or Puma in Ruby parlance) to serve the app. I don't want to have to deploy this with any set boundaries, per se, and I'd like to make something that could be added to a cPanel host or deployed via Heroku or Nanobox, etc. for example.
In other words, I'm trying to figure out where and how things couple and decouple with C#, ASP.NET, etc.
I've heard of OWIN as something to explore, but I'm not convinced that that's the right way to go. I've heard of Kestrel, but also, not sure if that's a way to go as far as a base web server, but could be (like WEBrick). Just not sure if it would run with Mono (I think you at least have to have Mono to get a workable CLR + stdlib, right?). I'd like to at least get a good 10,000 ft perspective of the lay of the land here since I'm new to C#.- Moved by Fei Hu Wednesday, March 14, 2018 8:40 AM Moved from C#
Wednesday, March 14, 2018 1:43 AM
All replies
-
Do you have Visual Studio? Have you looked at what is available? Well actually it is the setup that you need to look at; that can be a relatively authoritive list of what is available.
Your question is very vague and seems inconsistent. It is not clear whether you want to use ASP.Net or not. It is not clear that you are only asking about websites. It is even not clear of you want to write a compiler for a language like Ruby on Rails or Sinatra.
This forum is for the C# language. If you have questions about ASP.Net then you should ask in The ASP.NET Forums.
Perhaps you are interested in .NET Core.
- Announcing .NET Core 1.0 | .NET Blog
- .NET Standard - Demystifying .NET Core and .NET Standard
- .NET Core and Open-Source
- .NET Core Guide
- Get started with .NET Core
I created a list of tutorials and such for myself but I am not interested in learning .Net Core now. The following is the list I created for myself.
- Get Started with ASP.NET Core
- ASP.NET Core tutorials
- Create a Razor Pages web app with ASP.NET Core
- Getting started with Razor Pages in ASP.NET Core
- Adding a model to a Razor Pages app in ASP.NET Core
- Scaffolded Razor Pages in ASP.NET Core | Microsoft Docs
- Working with SQL Server LocalDB and ASP.NET Core | Microsoft Docs
- Update the generated pages | Microsoft Docs
- Adding search to ASP.NET Core Razor Pages | Microsoft Docs
- Adding a New Field to a Razor Page | Microsoft Docs
- Adding Validation | Microsoft Docs
- Uploading files to a Razor Page in ASP.NET Core | Microsoft Docs
- ?: Create a Web API with ASP.NET Core and Visual Studio for Windows
- Create a Razor Pages web app with ASP.NET Core
- Introduction to ASP.NET Core
- ASP.NET Core tutorials
- ASP.NET Core fundamentals
- Overview of ASP.NET Core MVC
- Testing and debugging ASP.NET Core
- Working with Data in ASP.NET Core
- ASP.NET Core MVC with Entity Framework Core - Tutorial 1 of 10
Sam Hobbs
SimpleSamples.InfoWednesday, March 14, 2018 2:52 AM -
In other words, I'm trying to figure out where and how things couple and decouple with C#, ASP.NET, etc.
The above and all this other stuff you are talking about, maybe, you need to slow your roll on it, just a little bit. :)
https://www.c-sharpcorner.com/article/difference-between-net-framework-and-net-core/
Core can be discussed at the ASP.NET forums.
http://forums.asp.net/
Wednesday, March 14, 2018 3:05 AM -
Core can be discussed at the ASP.NET forums.
http://forums.asp.net/
Sam Hobbs
SimpleSamples.InfoWednesday, March 14, 2018 3:54 AM -
Core can be discussed at the ASP.NET forums.
http://forums.asp.net/
Core is not just one thing, right? So not all "Core"s can be discussed in the ASP.NET forums. .Net Core is not ASP.Net Core and neither of them are Entity Framework Core, right? And I think Microsoft can be confusing; it might not be clear whether ASP .Net Core requires .Net Core. I know that EF Core does not require .Net Core so the answers are not as easy as we would like. And the .Net Core is not the core of .Net; Microsoft has stated that they don't intend for all of .Net Core to be in .Net.
Sam Hobbs
SimpleSamples.InfoMaybe, I missed the part about the poster talking about ASP.NET. Anyway, show another MS forum that is remotely talking about Core, other than the ASP.NET forums. And yes, EF Core is being discussed there too in the Core forum and in the EF forum in ASP.NET forums too, because ASP.NET Identity is using EF Core.
And one can see the distinction between an ASP.NET solution and ASP.NET Core solution as project types that can be created. Also, one can drop to the command prompt and issue Core commands to create a Core solution that was shown by ASP.NET documentation.
Either way, I'll never use a Core anything as I have no plans to work on anything going across platforms, although one can use Core on the Windows platform strictly. But from what I have seen, it's only ASP.NET Core that has the spot light with all MS documentation being equal.
And yes, there are EF Core components being used in the EF DB first non Core implementation used in the DAL I am using, which was put there when I started using IObjectDataAdapter.
Wednesday, March 14, 2018 4:31 AM