WoofWare.DotnetRuntimeLocator
0.1.7
See the version list below for details.
dotnet add package WoofWare.DotnetRuntimeLocator --version 0.1.7
NuGet\Install-Package WoofWare.DotnetRuntimeLocator -Version 0.1.7
<PackageReference Include="WoofWare.DotnetRuntimeLocator" Version="0.1.7" />
paket add WoofWare.DotnetRuntimeLocator --version 0.1.7
#r "nuget: WoofWare.DotnetRuntimeLocator, 0.1.7"
// Install WoofWare.DotnetRuntimeLocator as a Cake Addin #addin nuget:?package=WoofWare.DotnetRuntimeLocator&version=0.1.7 // Install WoofWare.DotnetRuntimeLocator as a Cake Tool #tool nuget:?package=WoofWare.DotnetRuntimeLocator&version=0.1.7
WoofWare.DotnetRuntimeLocator
Helpers to locate the .NET runtime and SDKs programmatically.
(If you're parsing dotnet --list-runtimes
, you're doing it wrong!)
Usage
See the example.
let info = DotnetEnvironmentInfo.Get ()
// or, if you already know a path to the `dotnet` executable...
let info = DotnetEnvironmentInfo.GetSpecific "/path/to/dotnet"
Troubleshooting
If you have a very strange setup, we may be unable to locate the libhostfxr
library we use to find the runtimes.
In that case, you can supply the environment variable WOOFWARE_DOTNET_LOCATOR_LIBHOSTFXR
,
which should be a full path to a libhostfxr
DLL on your system.
(Normally this is in /usr/share/dotnet/host/fxr/{runtime}/libhostfxr.so
; you must make sure your version is from runtime 6 or greater, because the required symbols were not added until then.)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on WoofWare.DotnetRuntimeLocator:
Package | Downloads |
---|---|
WoofWare.NUnitTestRunner.Lib
Library with primitives to allow you to run NUnit tests. |
GitHub repositories
This package is not used by any popular GitHub repositories.