URISchemeTools 1.0.2

dotnet add package URISchemeTools --version 1.0.2                
NuGet\Install-Package URISchemeTools -Version 1.0.2                
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="URISchemeTools" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add URISchemeTools --version 1.0.2                
#r "nuget: URISchemeTools, 1.0.2"                
#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 URISchemeTools as a Cake Addin
#addin nuget:?package=URISchemeTools&version=1.0.2

// Install URISchemeTools as a Cake Tool
#tool nuget:?package=URISchemeTools&version=1.0.2                

URIScheme

Usage

const string key = @"ssa";

// Creates a IURISchemeService object of the correct type for each supported OS. 
var service = URISchemeServiceFactory.GetURISchemeSerivce(key, @"URL:ssa Protocol", @"D:\MyAppPath\MyApp.exe --openurl");
// var service = URISchemeServiceFactory.GetURISchemeSerivce(key, @"URL:ssa Protocol", @"D:\MyAppPath\MyApp.exe --openurl", RegisterType.LocalMachine);

// Check if the protocol is registered to any application.
var hasProtocol = service.CheckAny();

// Check if the protocol is registered to the current application.
var isSet = service.Check();

// Register the service.
service.Set();

// Unregister the service.
service.Delete();

Notes

This library supports Windows and all Linux distros that follows the FreeDesktop specification.

MacOS is not supported, as there seems to be no API to register URI schemes programatically on this platform. Registering must be done by saving some in kind of Info file in a application package. See more information here.

Feel free to create issues here for any bugs you encounter.

If you know how to register URI schemes on other platforms, pull requests are welcome.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on URISchemeTools:

Repository Stars
LykosAI/StabilityMatrix
Multi-Platform Package Manager for Stable Diffusion
Version Downloads Last updated
1.0.2 7,815 2/18/2021