deadlock-dotnet-sdk 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package deadlock-dotnet-sdk --version 1.0.0
NuGet\Install-Package deadlock-dotnet-sdk -Version 1.0.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="deadlock-dotnet-sdk" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add deadlock-dotnet-sdk --version 1.0.0
#r "nuget: deadlock-dotnet-sdk, 1.0.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.
// Install deadlock-dotnet-sdk as a Cake Addin
#addin nuget:?package=deadlock-dotnet-sdk&version=1.0.0

// Install deadlock-dotnet-sdk as a Cake Tool
#tool nuget:?package=deadlock-dotnet-sdk&version=1.0.0


GitHub release (latest by date) Nuget GitHub GitHub

deadlock-dotnet-sdk is a simple-to-use SDK for unlocking files in C# / dotnet.


Add deadlock-dotnet-sdk to your solution tree using NuGet:

Install-Package deadlock-dotnet-sdk

Finding the processes that are locking a file

To find all the FileLocker objects that are locking a file, you can make use of the FindLockingProcesses method:

string path = @"C:\...\file.txt";
List<FileLocker> lockers = DeadLock.FindLockingProcesses(path);

You can also run the code asynchronously by calling the FindLockingProcessesAsync method`:

string path = @"C:\...\file.txt";
List<FileLocker> lockers = await DeadLock.FindLockingProcessesAsync(path);

Unlocking a file

To unlock a FileLocker, you can execute the Unlock method:


You can also run the code asynchronously by running the UnlockAsync method:



Images by: RemixIcon


This library is maintained by CodeDead. You can find more about us using the following links:

Copyright © 2022 CodeDead

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows 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-windows7.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
1.0.1 524 4/20/2022
1.0.0 411 4/18/2022