Showing posts with label tutorial. Show all posts
Showing posts with label tutorial. Show all posts

Setting up C# development environment in Linux

Recently I got curious in  .Net development on Linux environment.

I am aware of the Mono Project, but wanted to keep it as "pure" as it could be, meaning that I wanted to be, as much as possible, a Microsoft development environment.

I'm a long time Kubuntu user when it comes to Linux desktop, and I'm also a Visual Studio Code user for quite sometime.

 

.Net SDK

Starting with the basics, and already having VS Code installed, I started by installing .Net (Kubuntu is not mentions, just use Ubuntu as the reference) simply using 

sudo apt update
sudo apt install -y dotnet-sdk-7.0

That pretty much takes care of having .Net SDK installed.


VS Code IDE

Next step was to set up VS Code as the IDE.
This was achieved by installing the following VS Code extensions:

As a hint, pressing CTRL+SHIF+X on VS Code and searching for ms-dotnettools  on the extensions marketplace will list a lot of useful things.


Hello World

Once the basic was in place, it was time to try it out.
On a terminal, I typed the following commands to set up a Hello World console application:

mkdir HelloWorld
cd HelloWorld
dotnet new console

And a new console application was created printing "Hello, World!" into the terminal.
As a hint, type "dotnet help" for a list of available commands. Try also "dotnet new list" for a list of available templates.

Open the HelloWorld folder with VS Code, CTRL+K CTRL+O, and you can see generated code in the Program.cs file.

To build and run the application, just press CTRL+SHIFT+D and you'll be on the Run and Debug menu options. Having the ".Net Core Launch (console)" option selected and using "Start Debugging (F5)" will bring up the Debug Console and you'll be able to see the application execution.


Bonus | Desktop and Game Development

Don't get disappointed because it is not possible to develop desktop applications using Forms in Linux using C#.
It is possible to develop cross-platform games for desktop, or other kind of graphical applications, using SDL2 and OpenGL.
For that, and as Microsoft refers, it is possible to use MonoGame, just check the DesktopGL, template mgdesktopgl.
Keep in mind that packaging  and distribution is available, start coding and have fun.

To package and distribute, you can .

./M6

Ubuntu Server (Xenial) Step by Step Installation in VMWare ESXi

Installing Ubuntu Server 16.04.1 LTS in VMWare vSphere Hypervisor ESXi 6.0 step by step:

The ESXi version in the tutorials is 5.5, but it works in 6.0.

./M6

Drupal Small Guide & Arquitecture

While looking for some specific Drupal architecture information, I came across this small, focused tutorial.
I recommend it for beginners: Tutorial Drupal.

I also find what I was looking for:
Specially using Oracle database as the data repository for Drupal:
./M6

Creating a muli-lingual site with Joomla!

While looking for i18n information on Joomla!, I found this great step-by-step tutorial for creating multi-language sites on many Joomla! versions:

./M6

Painless Django Kickoff

I'm learning Django and, so far, I'm enjoying it.
But putting it to work, as a simple development environment on my laptop, was harder than I expected. Specially when it came to install the MySQL-Python connector.

If you'r looking for a great step-by-step tutorial, I recommend Starting a Django 1.6 Project the Right Way.

If you're starting with Django, or are having trouble setting Python with MySQL, maybe this will help: Painless Django with MySQL Install.

./M6

GWT Tutorial

I'm starting to develop a SaaS application and I'm evaluating GWT.
Here's a simple tutorial for starters: GWT Tutorial – Introduction to GWT

./M6

Tutorial and Presentation Creation Software

I've just came across with the best - so far - solution between functionality, quality, export formats and price for tutorial and presentation creation software, including desktop video capture.

This great solution is Wink.
I've tested several solutions like this one before, all usually they all do the same:
capture the screen, compose the frames with some tags or highlight rectangles and export it to a Flash SWF video.
But Wink is different. It does not capture the screen as a simple bitmap, it also captures the objects, like the mouse pointer, and allows to freely specify the frames per second for screen capture and video export.
This allows a much more flexible frame composition, like positioning the mouse cursor on any part of the screen, change its pointer and export the video with comfortable frame per second ratio where the mouse cursor is automatically moved even if it has been positioned on a different location from where it was captured.

./M6

Eclipse RCP Tutorial with Eclipse 3.4

I was digging for some RCP development information and I've found this nice tutorial: Eclipse RCP - Tutorial with Eclipse 3.4

As for the complete RCP development documentatio, it can be found in the Eclipse documentation site.

./M6