This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

.NET Core Issues

This section provides information on typical .NET Core related issues.

.NET Core SDK version#

To develop a project using C# Component System, a developer (artist, designer, and any other person working with the project) should have .NET Core SDK installed on their computer.

Notice
The minimum required version is 2.2.110, the recommended — 2.2.207.

It is required to install the SDK, not the runtime, because SDK contains both the compiler, which compiles .cs-components in UnigineEditor, and the runtime, which runs an already compiled application from UnigineEditor at the development stage.

Do I Need to Install .NET Core on All PCs to Run the Final Build?#

Running a final application built by UnigineEditor via the Build Tool does not require .NET Core SDK or .NET Core runtime. The output applications are self-contained and can be run flawlessly on almost any computer.

Typical Errors#

If you don't have .NET Core SDK installed, you can come across various errors while working with the project in both SDK Browser and UnigineEditor. For example, when running the application (clicking the RUN button) after creating it in SDK Browser, you may receive the error stating that File Not Found — File *_x64.dll doesn't exist:

File Not Found — File *_x64.dll doesn't exist

Errors also can occur when clicking the Play button in UnigineEditor (Required .NET Core SDK 2.2 not found):

Required .NET Core SDK 2.2 not found

Fixing Errors with Missing SDK#

To fix any possible errors with missing .NET Core 2.2.x SDK, you need to download and install .NET Core SDK 2.2.207 using the following link: https://dotnet.microsoft.com/download/dotnet-core/2.2.

Warning
After installing .NET Core SDK, restart UnigineEditor to have all the changes in the OS be implemented correctly. For Windows, it is also recommended to restart the PC to have the %PATH% variable updated.

Installing .NET Core 2.2.x SDK on Windows#

The rightmost number of the .NET Core SDK version can be used to define which version of Visual Studio SDK is compatible with.

We recommend installing the latest available version 2.2.207: https://dotnet.microsoft.com/download/dotnet-core/thank-you/sdk-2.2.207-windows-x64-installer.

If you plan using only Microsoft Visual Studio 2017 as the IDE, then install 2.2.110: https://dotnet.microsoft.com/download/dotnet-core/thank-you/sdk-2.2.110-windows-x64-installer.

Selecting the SDK version

Download the required installer and run it following all installation steps.

Optional: After installing the SDK you might find it useful to disable .NET Core SDK telemetry.

Installing .NET Core 2.2.x SDK on Linux#

We recommend installing .NET Core SDK version 2.2.207: https://dotnet.microsoft.com/download/dotnet-core/2.2.

Linux operating systems supported by .NET Core include at least the following:

  • Red Hat Enterprise Linux 6, 7
  • CentOS 7
  • Oracle Linux 7
  • Fedora 28, 29, 30
  • Debian 9
  • Ubuntu 16.04, 18.04, 18.10, 19.04, 19.10
  • Linux Mint 17, 18
  • openSUSE 15+
  • SUSE Enterprise Linux (SLES) 12 SP2+
  • Alpine Linux 3.8+
Warning
.NET Core installed via Snap is currently not supported.

.NET Core SDK can be installed on Linux in a number of ways. We describe manual installation, as it is more flexible (the process was described by Michael Heydt). Using the command line terminal, do the following:

  1. Download the installer:
    Shell commands
    wget https://download.visualstudio.microsoft.com/download/pr/022d9abf-35f0-4fd5-8d1c-86056df76e89/477f1ebb70f314054129a9f51e9ec8ec/dotnet-sdk-2.2.207-linux-x64.tar.gz
    For RedHat Enterprise Linux 6 users the following line should be used:
    Shell commands
    wget https://download.visualstudio.microsoft.com/download/pr/2b9ec838-2e6e-40cd-a57a-885e56904329/959135d11fd608afea316c01f73e9490/dotnet-sdk-2.2.207-rhel.6-x64.tar.gz -O dotnet-sdk-2.2.207-linux-x64.tar.gz
  2. Create the directory and uncompress the file there:
    Shell commands
    mkdir ~/dotnet-2.2-207 && tar -xvf dotnet-sdk-2.2.207-linux-x64.tar.gz -C ~/dotnet-2.2-207
  3. Create a symlink to the executable file in that directory:
    Shell commands
    sudo ln -s ~/dotnet-2.2-207/dotnet /usr/bin/dotnet
    You can do without a symlink and root access — just edit the ~/.profile file (or its equivalents: ~/.bashrc, ~/.kshrc, ~/.zshrc) in any text editor by adding the following line:
    Source code
    export PATH="$PATH;$HOME/dotnet-2.2.207"
    It will look this way:

    Then re-login. If UnigineEditor still doesn't detect .NET Core SDK, restart the system.
  4. Optional: After the file has been unpacked successfully, you can delete the archive:
    Shell commands
    rm dotnet-sdk-2.2.207-linux-x64.tar.gz
  5. Optional: After installing the SDK, you might find it useful to disable .NET Core SDK telemetry.

Checking .NET Core SDK Version#

You can check which .NET Core SDK Version (or versions) is installed on your PC.

On Windows#

  1. Open the Command Prompt (Click the Start button and type cmd).
  2. In the window that opens, type the following:
    Shell commands
    dotnet --list-sdks

The following information should appear:

List of the SDKs installed on the PC

On Linux#

  1. Open the terminal.
  2. In the window that opens, type the following:
    Shell commands
    dotnet --list-sdks

The following information should appear:

List of the SDKs installed on the PC

In the output, all installed .NET Core SDK versions are listed. If you installed SDK 2.2.x and it is not listed, address Microsoft support.

Checking SDK Compatibility#

When loading a C# Component System based project, UnigineEditor lists all found .NET Core versions in its log:

.NET Core SDK is not found.
Unsuitable versions of .NET Core SDK are found.
.NET Core SDK 2.2.x is found and C# Component System is initialized successfully.
Last update: 2020-04-12
Build: ()