« Dotnet script » : différence entre les versions
Apparence
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
[[Category:.NET | [[Category:.NET]] | ||
= [https://github.com/filipw/dotnet-script Description] = | = [https://github.com/filipw/dotnet-script Description] = | ||
Dernière version du 6 avril 2025 à 17:31
Description
Installation
# 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.
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/
|