finding-owning-csproj

Installation
SKILL.md

Finding the owning .csproj for a C# file

findproject is a .NET global CLI tool that, given a path to a C# source file, prints the absolute path of the nearest .csproj that owns it by walking up the directory tree.

When to use

Use findproject whenever you need to resolve the .csproj that owns a .cs file — to find it, or to build, test, restore, or run that project. Do not guess the project, walk the directory tree by hand, or grep for .csproj files.

Prerequisite

The findproject command must be on PATH. If it is missing, install it:

dotnet tool install --global findproject
Installs
4
GitHub Stars
2
First Seen
Jun 4, 2026
finding-owning-csproj — leblocks/dotnet-findproject-skill