ktsu.SingleAppInstance 1.3.0

Prefix Reserved
dotnet add package ktsu.SingleAppInstance --version 1.3.0
                    
NuGet\Install-Package ktsu.SingleAppInstance -Version 1.3.0
                    
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="ktsu.SingleAppInstance" Version="1.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ktsu.SingleAppInstance" Version="1.3.0" />
                    
Directory.Packages.props
<PackageReference Include="ktsu.SingleAppInstance" />
                    
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 ktsu.SingleAppInstance --version 1.3.0
                    
#r "nuget: ktsu.SingleAppInstance, 1.3.0"
                    
#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.
#:package ktsu.SingleAppInstance@1.3.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ktsu.SingleAppInstance&version=1.3.0
                    
Install as a Cake Addin
#tool nuget:?package=ktsu.SingleAppInstance&version=1.3.0
                    
Install as a Cake Tool

ktsu.SingleAppInstance

A .NET library that ensures only one instance of your application is running at a time.

License NuGet Version NuGet Version NuGet Downloads GitHub commit activity GitHub contributors GitHub Actions Workflow Status

Introduction

ktsu.SingleAppInstance is a lightweight .NET library that provides a robust mechanism to ensure only one instance of an application is running at a time. It uses a JSON-serialized PID file with multi-attribute process verification to accurately detect running instances, making it ideal for desktop applications, services, or any software that requires instance exclusivity to prevent resource conflicts or maintain data integrity.

Features

  • Single Instance Enforcement: Prevents multiple copies of your application from running simultaneously
  • Enhanced Process Identification: Verifies running instances using multiple attributes (PID, process name, start time, executable path) for accurate detection
  • Race Condition Handling: Includes a built-in 1-second delay to safely detect simultaneous startup attempts
  • PID File Management: Stores process information as JSON in the application data directory
  • Backward Compatibility: Gracefully handles legacy PID files that stored only a plain integer PID
  • Simple API: Two methods — ExitIfAlreadyRunning() for automatic exit and ShouldLaunch() for custom logic
  • Multi-Target Support: Works across .NET 10.0 through .NET 5.0, .NET Standard 2.0/2.1

Installation

Package Manager Console

Install-Package ktsu.SingleAppInstance

.NET CLI

dotnet add package ktsu.SingleAppInstance

Package Reference

<PackageReference Include="ktsu.SingleAppInstance" Version="x.y.z" />

Usage Examples

Basic Example

The simplest way to use SingleAppInstance is to call ExitIfAlreadyRunning at the start of your application. If another instance is detected, the process exits automatically:

using ktsu.SingleAppInstance;

class Program
{
    static void Main(string[] args)
    {
        SingleAppInstance.ExitIfAlreadyRunning();

        // Your application code here
        Console.WriteLine("Application is running.");
    }
}

Custom Launch Logic

If you prefer to handle the duplicate-instance case yourself, use ShouldLaunch() which returns a boolean:

using ktsu.SingleAppInstance;

class Program
{
    static void Main(string[] args)
    {
        if (SingleAppInstance.ShouldLaunch())
        {
            // Your application code here
            Console.WriteLine("Application is running.");
        }
        else
        {
            Console.WriteLine("Another instance is already running.");
        }
    }
}

WPF Application Integration

using System.Windows;
using ktsu.SingleAppInstance;

namespace MyWpfApp
{
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            if (!SingleAppInstance.ShouldLaunch())
            {
                MessageBox.Show("Application is already running.");
                Shutdown();
                return;
            }

            MainWindow = new MainWindow();
            MainWindow.Show();
        }
    }
}

API Reference

SingleAppInstance

A static class that provides single-instance enforcement for applications. Uses a PID file stored in the application data directory to track running instances.

Methods
Name Return Type Description
ExitIfAlreadyRunning() void Checks if another instance is running and calls Environment.Exit(0) if so
ShouldLaunch() bool Writes a PID file, waits 1 second for race condition detection, and returns true if safe to proceed

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

License

This project is licensed under the MIT License. See the LICENSE.md file for details.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  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 is compatible.  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 is compatible.  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 is compatible.  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.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  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

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.3.0 4 2/20/2026
1.2.17 37 2/19/2026
1.2.16 68 2/18/2026
1.2.15 78 2/17/2026
1.2.15-pre.1 38 2/17/2026
1.2.14 85 2/16/2026
1.2.14-pre.1 39 2/16/2026
1.2.13 80 2/14/2026
1.2.12 81 2/14/2026
1.2.12-pre.12 44 2/6/2026
1.2.12-pre.11 44 2/6/2026
1.2.12-pre.10 47 2/5/2026
1.2.12-pre.9 44 2/4/2026
1.2.12-pre.8 46 2/3/2026
1.2.12-pre.7 52 2/3/2026
1.2.12-pre.6 44 2/2/2026
1.2.12-pre.5 53 2/1/2026
1.2.12-pre.4 43 1/31/2026
1.2.12-pre.3 45 1/31/2026
1.2.12-pre.2 49 1/31/2026
Loading failed

## v1.3.0 (minor)

Changes since v1.2.0:

- Refactor IsAlreadyRunning method for improved clarity and efficiency; add legacy PID handling and enhance process checks ([@matt-edmondson](https://github.com/matt-edmondson))
- Add project configuration and documentation updates ([@matt-edmondson](https://github.com/matt-edmondson))
- Remove outdated Copilot documentation and add CLAUDE.md for project guidance ([@matt-edmondson](https://github.com/matt-edmondson))
- Remove legacy build scripts ([@matt-edmondson](https://github.com/matt-edmondson))
- migrate to dotnet 10 ([@matt-edmondson](https://github.com/matt-edmondson))
- Remove unnecessary PackageReference for Polyfill from SingleAppInstance project ([@matt-edmondson](https://github.com/matt-edmondson))
- Remove unnecessary PackageReference for Microsoft.Testing.Extensions.CodeCoverage ([@matt-edmondson](https://github.com/matt-edmondson))
- [patch] Fix TargetFrameworks property in test project ([@matt-edmondson](https://github.com/matt-edmondson))
- Remove redundant package references from test project ([@matt-edmondson](https://github.com/matt-edmondson))
- Update .editorconfig, .gitignore, .runsettings, and PSBuild.psm1 for improved configurations and coverage settings ([@matt-edmondson](https://github.com/matt-edmondson))
- Update ktsu.AppDataStorage package version to 1.15.5 ([@matt-edmondson](https://github.com/matt-edmondson))
- Remove Directory.Build.props, Directory.Build.targets, and several PowerShell scripts for metadata and version management. Update SingleAppInstance and its tests to use 'var' for variable declarations and add copyright information. ([@matt-edmondson](https://github.com/matt-edmondson))
- Remove .markdownlint.json configuration file, update DESCRIPTION.md for clarity, and change project SDK references in .csproj files to ktsu.Sdk.Lib and ktsu.Sdk.Test version 1.8.0. ([@matt-edmondson](https://github.com/matt-edmondson))
- Update README to match standard template format ([@matt-edmondson](https://github.com/matt-edmondson))
- Update test command to run in a single process ([@matt-edmondson](https://github.com/matt-edmondson))
- Refactor SingleAppInstanceTests for better isolation ([@matt-edmondson](https://github.com/matt-edmondson))
- Clarify command line usage by providing an example for non-interactive mode with `git` commands ([@matt-edmondson](https://github.com/matt-edmondson))
- Add guidelines for using command line in non-interactive mode and directory context ([@matt-edmondson](https://github.com/matt-edmondson))
- Refine workflow guidelines for clarity on specialized tool usage and documentation checks ([@matt-edmondson](https://github.com/matt-edmondson))
- Update language-specific guidelines to clarify tool usage and fallback options ([@matt-edmondson](https://github.com/matt-edmondson))
- Update language-specific guidelines to clarify test execution commands and improve resource management ([@matt-edmondson](https://github.com/matt-edmondson))
- Set max cpus for tests to 1 ([@matt-edmondson](https://github.com/matt-edmondson))
- Refactor SingleAppInstanceTests to simplify file deletion logic and remove unnecessary try-finally blocks, ensuring clearer test flow and improved readability. ([@matt-edmondson](https://github.com/matt-edmondson))
- Comment out MaxCpuCount setting in .runsettings to disable process-level parallelization ([@matt-edmondson](https://github.com/matt-edmondson))
- Enhance SingleAppInstanceTests by adding assertions to verify PID file handling and initial state checks ([@matt-edmondson](https://github.com/matt-edmondson))
- Organize and enhance Copilot documentation with detailed guidelines on memory usage, coding standards, and project management practices. ([@matt-edmondson](https://github.com/matt-edmondson))
- Add SingleAppInstance.Test project to solution and configure build settings ([@matt-edmondson](https://github.com/matt-edmondson))
- Refactor SingleAppInstanceTests to improve clarity and structure of test methods, ensuring accurate PID file handling and process information validation. ([@matt-edmondson](https://github.com/matt-edmondson))
- Enhance memory.jsonl to include additional details for SingleAppInstance tests and project structure ([@matt-edmondson](https://github.com/matt-edmondson))
- Update Copilot instructions for .NET project build and testing guidelines ([@matt-edmondson](https://github.com/matt-edmondson))
- Refine README.md to enhance feature descriptions and clarify technical implementation details for SingleAppInstance ([@matt-edmondson](https://github.com/matt-edmondson))
- Enhance memory.jsonl to include advanced process detection and compatibility details for SingleAppInstance class ([@matt-edmondson](https://github.com/matt-edmondson))
- Refine README.md for clarity and usage instructions of SingleAppInstance ([@matt-edmondson](https://github.com/matt-edmondson))
- Add tests for SingleAppInstance behavior with no other instance running and custom launch logic ([@matt-edmondson](https://github.com/matt-edmondson))
- Enhance SingleAppInstance to store and verify process information in JSON format ([@matt-edmondson](https://github.com/matt-edmondson))
- Add memory.jsonl file with project and class details ([@matt-edmondson](https://github.com/matt-edmondson))
- Add workflow and process guidelines to Copilot instructions ([@matt-edmondson](https://github.com/matt-edmondson))
- Add comprehensive Copilot instructions and memory management guidelines ([@matt-edmondson](https://github.com/matt-edmondson))
- Add markdownlint configuration file for linting rules ([@matt-edmondson](https://github.com/matt-edmondson))
- Update packages ([@matt-edmondson](https://github.com/matt-edmondson))

## v1.2.17 (patch)

Changes since v1.2.16:

- Bump the microsoft group with 2 updates ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Bump the ktsu group with 1 update ([@dependabot[bot]](https://github.com/dependabot[bot]))

## v1.2.16 (patch)

Changes since v1.2.15:

- Bump Polyfill from 9.8.1 to 9.9.0 ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Bump the ktsu group with 3 updates ([@dependabot[bot]](https://github.com/dependabot[bot]))

## v1.2.15 (patch)

Changes since v1.2.14:

- Remove outdated Copilot documentation and add CLAUDE.md for project guidance ([@matt-edmondson](https://github.com/matt-edmondson))

## v1.2.15-pre.1 (prerelease)

No significant changes detected since v1.2.15.

## v1.2.14 (patch)

Changes since v1.2.13:

- Merge remote-tracking branch 'refs/remotes/origin/main' ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync .github\workflows\dotnet.yml ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync .github\workflows\dotnet.yml ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync .github\workflows\dotnet.yml ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync .github\workflows\dotnet.yml ([@ktsu[bot]](https://github.com/ktsu[bot]))

## v1.2.14-pre.1 (prerelease)

No significant changes detected since v1.2.14.

## v1.2.13 (patch)

Changes since v1.2.12:

- Remove legacy build scripts ([@matt-edmondson](https://github.com/matt-edmondson))

## v1.2.12 (patch)

Changes since v1.2.11:

- Sync .github\workflows\dotnet.yml ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync global.json ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Bump the ktsu group with 1 update ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Merge remote-tracking branch 'refs/remotes/origin/main' ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync scripts\update-winget-manifests.ps1 ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync scripts\update-winget-manifests.ps1 ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync scripts\PSBuild.psm1 ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Bump the microsoft group with 2 updates ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Bump MSTest.Sdk from 4.0.2 to 4.1.0 ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Bump Polyfill from 9.8.0 to 9.8.1 ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Merge remote-tracking branch 'refs/remotes/origin/main' ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync scripts\PSBuild.psm1 ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync scripts\PSBuild.psm1 ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync global.json ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Bump Polyfill from 9.7.7 to 9.8.0 ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Merge remote-tracking branch 'refs/remotes/origin/main' ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync global.json ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Merge remote-tracking branch 'refs/remotes/origin/main' ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync global.json ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync COPYRIGHT.md ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Merge remote-tracking branch 'refs/remotes/origin/main' ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync scripts\PSBuild.psm1 ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync scripts\update-winget-manifests.ps1 ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync global.json ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync COPYRIGHT.md ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Bump the ktsu group with 5 updates ([@dependabot[bot]](https://github.com/dependabot[bot]))

## v1.2.12-pre.12 (prerelease)

Changes since v1.2.12-pre.11:

- Bump the ktsu group with 1 update ([@dependabot[bot]](https://github.com/dependabot[bot]))

## v1.2.12-pre.11 (prerelease)

Changes since v1.2.12-pre.10:

- Merge remote-tracking branch 'refs/remotes/origin/main' ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync scripts\update-winget-manifests.ps1 ([@ktsu[bot]](https://github.com/ktsu[bot]))

## v1.2.12-pre.10 (prerelease)

Changes since v1.2.12-pre.9:

- Sync scripts\update-winget-manifests.ps1 ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync scripts\PSBuild.psm1 ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Bump the microsoft group with 2 updates ([@dependabot[bot]](https://github.com/dependabot[bot]))

## v1.2.12-pre.9 (prerelease)

Changes since v1.2.12-pre.8:

- Bump MSTest.Sdk from 4.0.2 to 4.1.0 ([@dependabot[bot]](https://github.com/dependabot[bot]))

## v1.2.12-pre.8 (prerelease)

Changes since v1.2.12-pre.7:

- Bump Polyfill from 9.8.0 to 9.8.1 ([@dependabot[bot]](https://github.com/dependabot[bot]))

## v1.2.12-pre.7 (prerelease)

Changes since v1.2.12-pre.6:

- Merge remote-tracking branch 'refs/remotes/origin/main' ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync scripts\PSBuild.psm1 ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync scripts\PSBuild.psm1 ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync global.json ([@ktsu[bot]](https://github.com/ktsu[bot]))

## v1.2.12-pre.6 (prerelease)

Changes since v1.2.12-pre.5:

- Bump Polyfill from 9.7.7 to 9.8.0 ([@dependabot[bot]](https://github.com/dependabot[bot]))

## v1.2.12-pre.5 (prerelease)

Changes since v1.2.12-pre.4:

- Merge remote-tracking branch 'refs/remotes/origin/main' ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync global.json ([@ktsu[bot]](https://github.com/ktsu[bot]))

## v1.2.12-pre.4 (prerelease)

Changes since v1.2.12-pre.3:

- Merge remote-tracking branch 'refs/remotes/origin/main' ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync global.json ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync COPYRIGHT.md ([@ktsu[bot]](https://github.com/ktsu[bot]))

## v1.2.12-pre.3 (prerelease)

Changes since v1.2.12-pre.2:

- Merge remote-tracking branch 'refs/remotes/origin/main' ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync scripts\PSBuild.psm1 ([@ktsu[bot]](https://github.com/ktsu[bot]))

## v1.2.12-pre.2 (prerelease)

Changes since v1.2.12-pre.1:

- Sync scripts\update-winget-manifests.ps1 ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync global.json ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync COPYRIGHT.md ([@ktsu[bot]](https://github.com/ktsu[bot]))

## v1.2.12-pre.1 (prerelease)

No significant changes detected since v1.2.12.

## v1.2.11 (patch)

Changes since v1.2.10:

- Remove .github\workflows\project.yml ([@matt-edmondson](https://github.com/matt-edmondson))
- Bump Polyfill from 9.7.6 to 9.7.7 ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Bump the ktsu group with 5 updates ([@dependabot[bot]](https://github.com/dependabot[bot]))

## v1.2.11-pre.2 (prerelease)

Changes since v1.2.11-pre.1:

- Bump Polyfill from 9.7.6 to 9.7.7 ([@dependabot[bot]](https://github.com/dependabot[bot]))

## v1.2.11-pre.1 (prerelease)

No significant changes detected since v1.2.11.

## v1.2.10 (patch)

Changes since v1.2.9:

- migrate to dotnet 10 ([@matt-edmondson](https://github.com/matt-edmondson))

## v1.2.9 (patch)

Changes since v1.2.8:

- Remove unnecessary PackageReference for Polyfill from SingleAppInstance project ([@matt-edmondson](https://github.com/matt-edmondson))

## v1.2.8 (patch)

Changes since v1.2.7:

- Remove unnecessary PackageReference for Microsoft.Testing.Extensions.CodeCoverage ([@matt-edmondson](https://github.com/matt-edmondson))

## v1.2.8-pre.1 (prerelease)

No significant changes detected since v1.2.8.

## v1.2.7 (patch)

Changes since v1.2.6:

- [patch] Fix TargetFrameworks property in test project ([@matt-edmondson](https://github.com/matt-edmondson))
- Remove redundant package references from test project ([@matt-edmondson](https://github.com/matt-edmondson))

## v1.2.7-pre.4 (prerelease)

Changes since v1.2.7-pre.3:

- Sync scripts\update-winget-manifests.ps1 ([@ktsu[bot]](https://github.com/ktsu[bot]))

## v1.2.7-pre.3 (prerelease)

Changes since v1.2.7-pre.2:

- Merge remote-tracking branch 'refs/remotes/origin/main' ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync .github\workflows\dotnet.yml ([@ktsu[bot]](https://github.com/ktsu[bot]))

## v1.2.7-pre.2 (prerelease)

Changes since v1.2.7-pre.1:

- Sync scripts\PSBuild.psm1 ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync .github\workflows\dotnet.yml ([@ktsu[bot]](https://github.com/ktsu[bot]))

## v1.2.7-pre.1 (prerelease)

No significant changes detected since v1.2.7.

## v1.2.6 (patch)

Changes since v1.2.5:

- Update .editorconfig, .gitignore, .runsettings, and PSBuild.psm1 for improved configurations and coverage settings ([@matt-edmondson](https://github.com/matt-edmondson))
- Update ktsu.AppDataStorage package version to 1.15.5 ([@matt-edmondson](https://github.com/matt-edmondson))

## v1.2.6-pre.18 (prerelease)

Changes since v1.2.6-pre.17:

- Merge remote-tracking branch 'refs/remotes/origin/main' ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync scripts\PSBuild.psm1 ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync .editorconfig ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync .gitattributes ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync .gitignore ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync .mailmap ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync .runsettings ([@ktsu[bot]](https://github.com/ktsu[bot]))

## v1.2.6-pre.17 (prerelease)

Changes since v1.2.6-pre.16:

- Update ktsu.AppDataStorage to 1.15.4 ([@dependabot[bot]](https://github.com/dependabot[bot]))

## v1.2.6-pre.16 (prerelease)

Changes since v1.2.6-pre.15:

- Sync scripts\PSBuild.psm1 ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync .editorconfig ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync .gitattributes ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync .gitignore ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync .mailmap ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync .runsettings ([@ktsu[bot]](https://github.com/ktsu[bot]))

## v1.2.6-pre.15 (prerelease)

Changes since v1.2.6-pre.14:


## v1.2.6-pre.14 (prerelease)

Changes since v1.2.6-pre.13:


## v1.2.6-pre.13 (prerelease)

Changes since v1.2.6-pre.12:


## v1.2.6-pre.12 (prerelease)

Changes since v1.2.6-pre.11:


## v1.2.6-pre.11 (prerelease)

Changes since v1.2.6-pre.10:


## v1.2.6-pre.10 (prerelease)

Changes since v1.2.6-pre.9:


## v1.2.6-pre.9 (prerelease)

Changes since v1.2.6-pre.8:


## v1.2.6-pre.8 (prerelease)

Changes since v1.2.6-pre.7:


## v1.2.6-pre.7 (prerelease)

Changes since v1.2.6-pre.6:


## v1.2.6-pre.6 (prerelease)

Changes since v1.2.6-pre.5:


## v1.2.6-pre.5 (prerelease)

Changes since v1.2.6-pre.4:


## v1.2.6-pre.4 (prerelease)

Changes since v1.2.6-pre.3:


## v1.2.6-pre.3 (prerelease)

Changes since v1.2.6-pre.2:


## v1.2.6-pre.2 (prerelease)

Changes since v1.2.6-pre.1:


## v1.2.6-pre.1 (prerelease)

No significant changes detected since v1.2.6.

## v1.2.5 (patch)

Changes since v1.2.4:

- Remove Directory.Build.props, Directory.Build.targets, and several PowerShell scripts for metadata and version management. Update SingleAppInstance and its tests to use 'var' for variable declarations and add copyright information. ([@matt-edmondson](https://github.com/matt-edmondson))
- Remove .markdownlint.json configuration file, update DESCRIPTION.md for clarity, and change project SDK references in .csproj files to ktsu.Sdk.Lib and ktsu.Sdk.Test version 1.8.0. ([@matt-edmondson](https://github.com/matt-edmondson))

## v1.2.5-pre.3 (prerelease)

Changes since v1.2.5-pre.2:

- Bump ktsu.AppDataStorage from 1.11.0 to 1.15.0 in the ktsu group ([@dependabot[bot]](https://github.com/dependabot[bot]))

## v1.2.5-pre.2 (prerelease)

Changes since v1.2.5-pre.1:

- Bump ktsu.AppDataStorage from 1.7.2 to 1.11.0 in the ktsu group ([@dependabot[bot]](https://github.com/dependabot[bot]))

## v1.2.5-pre.1 (prerelease)

No significant changes detected since v1.2.5.

## v1.2.4 (patch)

Changes since v1.2.3:

- Update README to match standard template format ([@matt-edmondson](https://github.com/matt-edmondson))

## v1.2.3 (patch)

Changes since v1.2.2:

- Update test command to run in a single process ([@matt-edmondson](https://github.com/matt-edmondson))
- Refactor SingleAppInstanceTests for better isolation ([@matt-edmondson](https://github.com/matt-edmondson))
- Clarify command line usage by providing an example for non-interactive mode with `git` commands ([@matt-edmondson](https://github.com/matt-edmondson))
- Add guidelines for using command line in non-interactive mode and directory context ([@matt-edmondson](https://github.com/matt-edmondson))
- Refine workflow guidelines for clarity on specialized tool usage and documentation checks ([@matt-edmondson](https://github.com/matt-edmondson))
- Update language-specific guidelines to clarify tool usage and fallback options ([@matt-edmondson](https://github.com/matt-edmondson))
- Update language-specific guidelines to clarify test execution commands and improve resource management ([@matt-edmondson](https://github.com/matt-edmondson))
- Set max cpus for tests to 1 ([@matt-edmondson](https://github.com/matt-edmondson))
- Refactor SingleAppInstanceTests to simplify file deletion logic and remove unnecessary try-finally blocks, ensuring clearer test flow and improved readability. ([@matt-edmondson](https://github.com/matt-edmondson))
- Comment out MaxCpuCount setting in .runsettings to disable process-level parallelization ([@matt-edmondson](https://github.com/matt-edmondson))
- Enhance SingleAppInstanceTests by adding assertions to verify PID file handling and initial state checks ([@matt-edmondson](https://github.com/matt-edmondson))
- Organize and enhance Copilot documentation with detailed guidelines on memory usage, coding standards, and project management practices. ([@matt-edmondson](https://github.com/matt-edmondson))
- Add SingleAppInstance.Test project to solution and configure build settings ([@matt-edmondson](https://github.com/matt-edmondson))
- Refactor SingleAppInstanceTests to improve clarity and structure of test methods, ensuring accurate PID file handling and process information validation. ([@matt-edmondson](https://github.com/matt-edmondson))
- Enhance memory.jsonl to include additional details for SingleAppInstance tests and project structure ([@matt-edmondson](https://github.com/matt-edmondson))
- Update Copilot instructions for .NET project build and testing guidelines ([@matt-edmondson](https://github.com/matt-edmondson))
- Refine README.md to enhance feature descriptions and clarify technical implementation details for SingleAppInstance ([@matt-edmondson](https://github.com/matt-edmondson))
- Enhance memory.jsonl to include advanced process detection and compatibility details for SingleAppInstance class ([@matt-edmondson](https://github.com/matt-edmondson))
- Refine README.md for clarity and usage instructions of SingleAppInstance ([@matt-edmondson](https://github.com/matt-edmondson))
- Add tests for SingleAppInstance behavior with no other instance running and custom launch logic ([@matt-edmondson](https://github.com/matt-edmondson))
- Enhance SingleAppInstance to store and verify process information in JSON format ([@matt-edmondson](https://github.com/matt-edmondson))
- Add memory.jsonl file with project and class details ([@matt-edmondson](https://github.com/matt-edmondson))
- Add workflow and process guidelines to Copilot instructions ([@matt-edmondson](https://github.com/matt-edmondson))

## v1.2.2 (patch)

Changes since v1.2.1:

- Add comprehensive Copilot instructions and memory management guidelines ([@matt-edmondson](https://github.com/matt-edmondson))
- Add markdownlint configuration file for linting rules ([@matt-edmondson](https://github.com/matt-edmondson))

## v1.2.2-pre.3 (prerelease)

Changes since v1.2.2-pre.2:

- Bump ktsu.AppDataStorage from 1.7.1 to 1.7.2 in the ktsu group ([@dependabot[bot]](https://github.com/dependabot[bot]))

## v1.2.2-pre.2 (prerelease)

Changes since v1.2.2-pre.1:

- Sync .editorconfig ([@ktsu[bot]](https://github.com/ktsu[bot]))

## v1.2.2-pre.1 (prerelease)

No significant changes detected since v1.2.2.

## v1.2.1 (patch)

Changes since v1.2.0:

- Update packages ([@matt-edmondson](https://github.com/matt-edmondson))

## v1.2.0 (minor)

Changes since v1.1.0:

- Add LICENSE template ([@matt-edmondson](https://github.com/matt-edmondson))

## v1.1.1-pre.2 (prerelease)

Changes since v1.1.1-pre.1:

- Sync scripts\make-version.ps1 ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync scripts\make-changelog.ps1 ([@ktsu[bot]](https://github.com/ktsu[bot]))

## v1.1.1-pre.1 (prerelease)

Changes since v1.1.0:

- Sync scripts\make-version.ps1 ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync scripts\make-changelog.ps1 ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync .editorconfig ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync .gitignore ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync Directory.Build.targets ([@ktsu[bot]](https://github.com/ktsu[bot]))

## v1.1.0 (minor)

Changes since v1.0.0-pre.19:

- Apply new editorconfig ([@matt-edmondson](https://github.com/matt-edmondson))

## v1.0.0-pre.19 (prerelease)

Changes since v1.0.0-pre.18:

- Bump ktsu.AppDataStorage from 1.4.7 to 1.5.0 in the ktsu group ([@dependabot[bot]](https://github.com/dependabot[bot]))

## v1.0.0-pre.18 (prerelease)

Changes since v1.0.0-pre.17:

- Sync scripts\make-version.ps1 ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync scripts\make-changelog.ps1 ([@ktsu[bot]](https://github.com/ktsu[bot]))

## v1.0.0-pre.17 (prerelease)

Changes since v1.0.0-pre.16:

- Sync .github\workflows\dotnet.yml ([@ktsu[bot]](https://github.com/ktsu[bot]))

## v1.0.0-pre.16 (prerelease)

Changes since v1.0.0-pre.15:

- Sync scripts\make-version.ps1 ([@ktsu[bot]](https://github.com/ktsu[bot]))
- Sync scripts\make-changelog.ps1 ([@ktsu[bot]](https://github.com/ktsu[bot]))

## v1.0.0-pre.15 (prerelease)

Changes since v1.0.0-pre.14:

- Sync .github\workflows\dotnet.yml ([@ktsu[bot]](https://github.com/ktsu[bot]))

## v1.0.0-pre.14 (prerelease)

Changes since v1.0.0-pre.13:

- Revert unintended changes ([@Damon3000s](https://github.com/Damon3000s))
- Review Feedback ([@Damon3000s](https://github.com/Damon3000s))
- Create the directory the Pid will be stored in ([@Damon3000s](https://github.com/Damon3000s))

## v1.0.0-pre.13 (prerelease)

Changes since v1.0.0-pre.12:

- Sync .github\workflows\dotnet.yml ([@ktsu[bot]](https://github.com/ktsu[bot]))

## v1.0.0-pre.12 (prerelease)

Changes since v1.0.0-pre.11:


## v1.0.0-pre.11 (prerelease)

Changes since v1.0.0-pre.10:


## v1.0.0-pre.10 (prerelease)

Changes since v1.0.0-pre.9:

- Catch DirectoryNotFoundException ([@Damon3000s](https://github.com/Damon3000s))

## v1.0.0-pre.9 (prerelease)

Changes since v1.0.0-pre.8:

- Bump MSTest from 3.7.2 to 3.7.3 ([@dependabot[bot]](https://github.com/dependabot[bot]))

## v1.0.0-pre.8 (prerelease)

Changes since v1.0.0-pre.7:


## v1.0.0-pre.7 (prerelease)

Changes since v1.0.0-pre.6:


## v1.0.0-pre.6 (prerelease)

Changes since v1.0.0-pre.5:

- Bump MSTest from 3.7.1 to 3.7.2 ([@dependabot[bot]](https://github.com/dependabot[bot]))

## v1.0.0-pre.5 (prerelease)

Changes since v1.0.0-pre.4:

- Bump coverlet.collector from 6.0.3 to 6.0.4 ([@dependabot[bot]](https://github.com/dependabot[bot]))

## v1.0.0-pre.4 (prerelease)

Changes since v1.0.0-pre.3:


## v1.0.0-pre.3 (prerelease)

Changes since v1.0.0-pre.2:


## v1.0.0-pre.2 (prerelease)

Changes since v1.0.0-pre.1:

- Remove ktsu.ScopedAction package from project ([@matt-edmondson](https://github.com/matt-edmondson))

## v1.0.0-pre.1 (prerelease)

No significant changes detected since v0.0.1-pre.1.

## v0.0.1-pre.1 (prerelease)

- Remove ktsu.ScopedAction package from project ([@matt-edmondson](https://github.com/matt-edmondson))
- Initial commit ([@matt-edmondson](https://github.com/matt-edmondson))