WoofWare.DotnetRuntimeLocator 0.1.12

dotnet add package WoofWare.DotnetRuntimeLocator --version 0.1.12
                    
NuGet\Install-Package WoofWare.DotnetRuntimeLocator -Version 0.1.12
                    
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.12" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WoofWare.DotnetRuntimeLocator" Version="0.1.12" />
                    
Directory.Packages.props
<PackageReference Include="WoofWare.DotnetRuntimeLocator" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WoofWare.DotnetRuntimeLocator --version 0.1.12
                    
#r "nuget: WoofWare.DotnetRuntimeLocator, 0.1.12"
                    
#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.
#addin nuget:?package=WoofWare.DotnetRuntimeLocator&version=0.1.12
                    
Install WoofWare.DotnetRuntimeLocator as a Cake Addin
#tool nuget:?package=WoofWare.DotnetRuntimeLocator&version=0.1.12
                    
Install WoofWare.DotnetRuntimeLocator as a Cake Tool

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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.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.12 402 3/21/2025
0.1.11 1,417 11/24/2024
0.1.10 94 11/24/2024
0.1.9 2,903 6/17/2024
0.1.8 97 6/17/2024
0.1.7 93 6/17/2024
0.1.6 102 6/17/2024
0.1.5 126 6/16/2024
0.1.4 706 6/9/2024
0.1.3 236 6/9/2024
0.1.2 312 6/7/2024