loading...empty;done;/net-core/:-uri.NET Core | iNET.elastic Dev Docs

.NET Core Application Server

.NET Core is an open-source, cross-platform version of .NET for building websites, services, and console applications. Often it is used for cloud applications or refactoring large enterprise applications into microservices.

.NET Core consists of the following components:

  • .NET Core runtime - provides essential services (type system, assembly loading, garbage collector, etc.). Framework libraries provide primitive data types, app composition types, and fundamental utilities
  • ASP.NET Core runtime - provides a framework for building modern, cloud-based, internet-connected applications (web apps, IoT apps, and mobile backends)
  • .NET Core SDK and language compilers (Roslyn and F#) - allow the development of the .NET Core projects
  • dotnet command - launches .NET Core applications and CLI commands. It selects and hosts the runtime, provides an assembly loading policy, and launches apps and tools

Notes:

  • This stack availability depends on the particular hosting provider settings.
  • This template utilizes a modern systemd initialization daemon.

Creating .NET Core Server

1. Log in to the PaaS dashboard and click the New Environment button at the top-left corner.

2. Within the opened topology wizard, navigate to the .NET tab and select the .NET Core application server. Configure the other parameters (cloudlets, disk limit, public IPs, etc.) up to your needs.

.NET Core topology wizard

Click Create to proceed.

3. Your environment with the .NET Core server will be created in a few minutes.

.NET Core application server created

The application server operates in a separate container (node) - an isolated virtualized instance - provisioned for a software stack. The container has its own private IP and unique DNS record.

Deploying Application to .NET Core Server

The platform provides multiple options to automatically deploy projects. In this example, we’ll add a simple .NET project stored on GitHub.

1. Open the Git/SVN tab of the Deployment Manager to add a new repository.

deployment manager add repository

Tip: If you are interested in creating your own .NET application follow the official documentation.

2. Provide the necessary URL and Branch for your project.

Note: .NET Core supports several specific variables that can help with application deployment:

  • APP_NAME - points to the particular folder (if there are multiple applications in a single repository) or runs a specific .dll file in your project
  • ASPNETCORE_URLS - configures services to work with the specified URL
  • RUN_OPTION - provides additional dotnet run options for your project

.NET Core app name variable

add .NET Core application

Click Add to save the project in your Deployment Manager.

3. Open the deployment dialog using one of the two buttons in the image below:

deploy from Git

4. Within the opened frame, you need to select an application to be deployed, branch, and the target environment.

deploy .NET Core application

Note: Similar to the Python, Node.js, and Go programming languages, the .NET Core has a single context (i.e. only one app can be deployed at a time).

Configure any other parameters according to your needs by following the deployment guide.

5. In a minute, the application will be deployed and can be accessed using the Open in Browser button next to the .NET Core application server.

open .NET Core in browser

Your web application should be opened in a new browser tab. In our case, it is just a simple .NET website.

.NET Core web application

Use this guide as a reference to deploy your own application to the .NET Core server.

What’s next?