WoofWare.DotnetRuntimeLocator 0.1.11

dotnet add package WoofWare.DotnetRuntimeLocator --version 0.1.11                
NuGet\Install-Package WoofWare.DotnetRuntimeLocator -Version 0.1.11                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WoofWare.DotnetRuntimeLocator" Version="0.1.11" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WoofWare.DotnetRuntimeLocator --version 0.1.11                
#r "nuget: WoofWare.DotnetRuntimeLocator, 0.1.11"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WoofWare.DotnetRuntimeLocator as a Cake Addin
#addin nuget:?package=WoofWare.DotnetRuntimeLocator&version=0.1.11

// Install WoofWare.DotnetRuntimeLocator as a Cake Tool
#tool nuget:?package=WoofWare.DotnetRuntimeLocator&version=0.1.11                

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

The easiest way to make sure we can find a dotnet is to have one on your PATH.

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.

Version Downloads Last updated
0.1.11 460 11/24/2024
0.1.10 80 11/24/2024
0.1.9 2,797 6/17/2024
0.1.8 90 6/17/2024
0.1.7 86 6/17/2024
0.1.6 94 6/17/2024
0.1.5 121 6/16/2024
0.1.4 699 6/9/2024
0.1.3 229 6/9/2024
0.1.2 307 6/7/2024