Skip to content

edvilme/dotnet-sln-sync

Repository files navigation

VS Solution Syncing: dotnet slnsync

Use this .NET Tool to manually sync .sln and .slnx solution files.

NuGet package

Installation

Download as a global tool via NuGet

dotnet tool install -g dotnet-sln-sync

Usage

The tool will be available to use as dotnet slnsync.

dotnet slnsync [<DIRECTORY>] [--diff-only]
dotnet slnsync <FILE_OR_DIR> <FILE_OR_DIR> [--diff-only]

The tool will prompt you to add or remove the projects/solution folders from the solution files, one by one.

image

After execution, both files should have the same projects and solution folders.

image

When working with teams, it might be useful to create a git hook that calls this tool on commit, or before pushing to ensure no discrepancies exist between the files.

echo "#!/bin/sh" >> .git/hooks/pre-commit
echo slnxsync >> .git/hooks/pre-commit

Contributing

This is an experimental tool, but feel free to create new issues or pull requests.

Dependencies

This project uses vs-solutionpersistence for sln(x) parsing.

About

A .NET Tool to sync sln/slnx files inside a repo (WIP)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages