DotNET: Difference between revisions
imported>Basil m Fixed a typo |
imported>Mdarocha Update notes on global tools |
||
| Line 105: | Line 105: | ||
== Global Tools == | == Global Tools == | ||
Local instalation of .NET global tools is fully supported and preferred when possible - more info [https://learn.microsoft.com/en-us/dotnet/core/tools/global-tools#install-a-local-tool in the Microsoft docs]. | |||
[https://github.com/ | For globally installing .NET tools, search if they are available as Nix packages - they are packaged as any other normal | ||
.NET binary, using <code>buildDotnetModule</code>. For .NET tools with no source available, or those hard to build from source, <code>buildDotnetGlobalTool</code> is available. See [https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/dotnet.section.md#dotnet-global-tools-dotnet-global-tools dotnet nixpkgs manual] for more info. | |||
Note that Nix-packaged .NET tools use a special wrapper (toggled by <code>useDotnetFromEnv</code> option in <code>buildDotnetModule</code>) that automatically picks up .NET install from the user environment. If you want to use a | |||
different SDK version with a Nix-packaged .NET tools than the default, make sure the <code>dotnet</code> CLI is installed and available. | |||
< | |||
</ | |||
== See also == | == See also == | ||