Clicksrv.Packages.StartWithOSSettings 0.3.3

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

// Install Clicksrv.Packages.StartWithOSSettings as a Cake Tool
#tool nuget:?package=Clicksrv.Packages.StartWithOSSettings&version=0.3.3



This package allows the user to configure start-up of an application with the OS. Apart from adding the entry to start-up, this package also supports Enabling or Disabling the Startup entry (as can be configured using Task Manager on Windows).


Instantiate StartupOptions from Clicksrv.StartWithOSSettings. An example piece of code below demonstrates how this package can be used.

    var startup = new StartupOptions("<AppName>", "<PathToExecutable>", "<AnyArgumentsToBeSupplied>", global: false);

StartupOptions is an auto-platform class that creates the required instance underneath based on the execution platform. User can also use specific classes like WindowsStartupOptions to force a particular platform.

An example implementation with usage here.

Release Notes


  • Test for Admin mode
  • Add Support for Unix Machines
  • Add Support for other Operating Systems supported by .NET.
  • Expand compatibility to older versions of .NET.
  • More to come...
  • Fixes for Windows Startup
  • Restructure to src and test
  • Dev tested for use with User Level Startup, testing for Machine Level pending
  • Add Unit Tests
  • Included symbols for debugging by projects choosing to debug this package

<b><i>Known Issues</b></i> Admin Mode is currently untested

  • Initial Release, buggy, do not use


Create a PR with details regarding what is being added and with what purpose. I'll be happy to review and merge it with the codebase if it suits the requirement.

Product Versions
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.3.3 127 3/23/2022