.NET


.NET

.NET (previously named .NET Core) is a FOSS software framework from Microsoft for C#, Visual Basic, and F#. It is designed to be cross-platform, modular and apt for modern applications, as opposed to its predecessor, the .NET Framework.

Lastly, to build dynamic web sites, applications, and services using ASP.NET Core, install aspnet-runtime.

.NET SDKs are published under several version schemes. Only SDK versions can be built from source and will be available in the official repositories. Should you require any other version you will need one of the packages from AUR.

You can install multiple versions of the .NET SDK or runtime side by side by using the dotnet-install.sh script provided by the .NET Foundation. You can find the documentation of the script here.

For instance, this command would install the latest version found in the "STS"(Standard Term Support) channel in :

You may want to simulate the installation first by using the flag.

Once installed, you can verify the SDKs available:

You may want to remove outdated versions installed with . The automated .NET Uninstall Tool does still not support Linux, so the deinstallation has to be done manually.

Deinstallation of the sdk:

Using also dotnet host and shared packages are getting installed, which may have to get removed additionally depending on the release.

Complete deinstallation of the .NET Version (sdk, host, shared):

Some of the AUR dotnet packages are made to be installed alongside each other. Only one host package (dotnet-host-bin or dotnet-host) is needed containing the command-line tool and you can install any of the available SDKs and Runtimes (latest packages of all major versions) next to it. List of compatible packages:

You can install PowerShell Core as a "global" tool also [1] [2]

The Microsoft build of the .NET SDK collects telemetry, by default. AUR .NET SDK packages (the variants) are based on Microsoft builds of .NET. .NET runtime components do not collect telemetry in any scenario.

Community builds (including those in Arch; starting with .NET 7) do not collect telemetry, per a change to the .NET SDK by Red Hat.

If you get the following error when you try to run a newly created project, you no longer need to set a variable as described in the solutions of various GitHub issues. Arch's dotnet package (as of 3.1) installs it to the Microsoft recommended location of .

This is caused because the runtime is shipped as a separate package in Arch. You just need to make sure you have the aspnet-runtime package installed as well.

This happens after an update. The currently running shell / login session is storing environment variables for the dotnet SDK version different from one installed. Restarting the shell or logging in again should fix this.

This is believed to be caused by a conflict between the Mono and MSBuild SDK libs and the dotnet ones. To fix this export the path manually in your shell (replacing the version number as necessary) e.g:

Installed packages do not uninstall dotnet-host, so uninstall dotnet-host

Previous articleNext article

POPULAR CATEGORY

misc

18087

entertainment

19451

corporate

16235

research

9980

wellness

16137

athletics

20517