Dotnet script

De Banane Atomic
Aller à la navigationAller à la recherche

Description

Installation

Bash.svg
# nécessite au minimum .Net Core SDK 2.1.300
dotnet tool install -g dotnet-script

dotnet tool list -g
# Package Id         Version      Commands     
# ---------------------------------------------
# dotnet-script      0.25.0       dotnet-script
~/.oh-my-zsh/custom/variables.zsh
# Add .NET Core SDK tools
export PATH="$PATH:~/.dotnet/tools"

Erreurs

libhostfxr.so could not be found

A fatal error occurred, the required library libhostfxr.so could not be found.
If this is a self-contained application, that library should exist in [/home/nicolas/.dotnet/tools/.store/dotnet-script/0.25.0/dotnet-script/0.25.0/tools/netcoreapp2.1/any/].
If this is a framework-dependent application, install the runtime in the default location [/usr/share/dotnet] or use the DOTNET_ROOT environment variable to specify the runtime location.
Bash.svg
cp /opt/dotnet/host/fxr/2.1.0/libhostfxr.so ~/.dotnet/tools/.store/dotnet-script/0.25.0/dotnet-script/0.25.0/tools/netcoreapp2.1/any/