r/visualbasic • VB Guru • May 03 '18

NET Core 2 and VB.Net introduction.

TLDR; Thinking about NET/ASP Core 2 and Visual Basic posts. Is that something people would like to see?

As a mod I have been looking for ways to contribute content to /r/visualbasic and not just answer questions.

I have been spending a bit of time learning how to implement Net Core, and ASP.Net Core in Visual Basic. I am going to do some posts about how to work with and convert existing applications to Net Core and ASP.Net Core. I have been working towards getting rid of Windows Server and MS SQL and moving towards a Nginx and Mysql environment, this will allow me to deploy my applications on any platform, anywhere. This will include Amazon Web Services, Azure, Any modern Linux Distribution and any flavour of Windows server. For those of you who missed it Linux is the main driver for the web... :p

I will also be looking at creating restful services and consuming them in a few different ways. The restful layer will allow for much more flexibility with mobile apps, as well as make it easier to abstract the interface. I will be abstracting interface from the backend and segmenting the application into business rules and data tier. This means the web interfaces could be done with Angular or raw HTML5, CSS and ECMAscript (We should not call it Javascript anymore Oracle is bitchy about it). The restful layer will allow for much more flexibility with mobile apps, as well as

Both NET/ASP Core are available with full source and are under the MIT license;

A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.

This does not mean a lot for you out there who just want to learn some net/asp core but it does mean that the underlying model is exposed for those of us that want to be able to fix or modify the code and understand why something is going sideways in our code.

I like to start with Documentation;

Design of the Visual Basic .NET programming language and runtime library.

Documentation for ASP.NET and ASP.NET Core

I will be using these documents, the asp.net msdn documentation, other blogs, Teleriks C# convertor to help make sense of some of the implementations, and the MVC specification.

To be up front with you there is very little in the way of examples for vb.net and core 2, I had a hell of a time getting it sorted out because of this lack of outside knowledge. Almost everything is C#, and to be frank if I wanted to work in C# I would go back to Java :D

To follow the posts I will be introducing over the next while you will need Visual Studio 2017 installed, with the .Net Core 2 development workload installed. If you don't know how to do this I would refer to this.

https://www.visualstudio.com/vs/support/selecting-workloads-visual-studio-2017/

You are looking to install the NET Core cross-platform development workload. This is done via the Visual Studio installer.

Once this is done you will need to install Net Core 2.1.0 Preview 2 (2018/04/10) via NuGet it has a pile of advantages. I upgraded early because of the compiler speed. It's stable, and what I will be using.

I don't have a blog or a site that would fit this kind of work so I am starting here to see where I go with it. For now it will be housed in posts and the VB wiki here on /r/visualbasic

So is this some content the community would like to see or should I do something else?

6 Upvotes

5 comments sorted by

2

u/[deleted] May 03 '18

That would be great. I've been using VB since VB4 and never really moved on from WinForms. The world is heading towards C# although the TIBO list says C# and VB are almost at the same level.

I would really like to dive deeper into VB.

1

u/Eleventhousand May 03 '18

VB is dying.

I still love VB, but content is sparse. Any content you add will be great. It seems like a lot of posts are coursework-related. I really only use VB from a hobbyist perspective these days. I'll try to contribute some content in the vein.

1

u/ocdtrekkie May 03 '18

I really want to see more work on pushing VB into multiplatform use. My current app is WinForms-dependent at the moment, but it's not a UI-heavy app, and I've considered how useful it'd be if it ran on Linux someday.

1

u/JakDrako May 03 '18

Count me in as interested. I've been doing a lot more web work lately, and I'd love to see some VB/.Net Core stuff, since there's pretty much none of it anywhere.