WoofWare.DotnetRuntimeLocator 0.1.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package WoofWare.DotnetRuntimeLocator --version 0.1.5                
NuGet\Install-Package WoofWare.DotnetRuntimeLocator -Version 0.1.5                
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.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WoofWare.DotnetRuntimeLocator --version 0.1.5                
#r "nuget: WoofWare.DotnetRuntimeLocator, 0.1.5"                
#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.5

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

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.Get "/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 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 34 11/24/2024
0.1.10 27 11/24/2024
0.1.9 2,759 6/17/2024
0.1.8 83 6/17/2024
0.1.7 82 6/17/2024
0.1.6 90 6/17/2024
0.1.5 112 6/16/2024
0.1.4 694 6/9/2024
0.1.3 224 6/9/2024
0.1.2 299 6/7/2024