Skip to content

watch and update non-compiled files of a .csproj project at runtime

License

Notifications You must be signed in to change notification settings

francWhite/watchex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

watchex

CI GitHub release licence

Evaluates all files in a given .csproj file, including its dependencies, which are marked as CopyToOutputDirectory "Always" or "PreserveNewest" and thus would be copied to the output directory during the build process. These files are then observed and if any changes are detected, they are copied to the output directory. This avoids having to rebuild the project after changes in content files like translations or non standard configurations.

Why not just use dotnet watch? Even though dotnet watch is a great tool, it has its limitations. If you have some non-compiled files in a dependency which are included with a wildcard like translations\**\*.json, dotnet watch will not detect changes in these files because their paths are evaluated incorrectly; it will look for them in the startup project directory instead of the dependency in question.

Table of Contents

Installation

Install using winget

winget install francWhite.watchex

Install manually

Download the latest release from the releases page, extract the archive to a folder of your choice and add said folder to your PATH environment variable.

Usage

USAGE:
    watchex [OPTIONS]

OPTIONS:
    -h, --help                 Prints help information
    -v, --verbose              Prints verbose log output
    -V, --version              Prints version information
    -p, --project <PROJECT>    Path to the project file. Defaults to the first *.csproj file found in the current directory

License

Distributed under the MIT license

About

watch and update non-compiled files of a .csproj project at runtime

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages