csproj-synchronizer
v1.2.3
Published
1. check csproj file's content, make sure all `<Content Include="sompath/foo/bar.js"></Content>` file is exist in project. if not exit with code 1. 2. check all file is added into csproj file as index. if not throw error with exit code 1. 3. [todo] Automa
Downloads
3
Readme
csproj-synchronizer
Goal
- check csproj file's content, make sure all
<Content Include="sompath/foo/bar.js"></Content>
file is exist in project. if not exit with code 1. - check all file is added into csproj file as index. if not throw error with exit code 1.
- [todo] Automaticly fix issues and overwrite back to csproj file.
- auto fix the cases issue, i.e. csproj file is fooBar.js but actually in disk is FooBar.js, after the fix the disk file will rename to fooBar.js
Usage
npm i -g csproj-synchronizer
- run on your project root
csproj-sync --file="path/to/your/Some.csproj" --configFile="./some/json/config/file.json"
example config file
{
"checkPath": [
"./Source/Web/Scripts/**/*.js",
"./Source/Web/Content/**/*.scss",
"./Source/Web/Images/**/*.{png,jpg,svg}"
],
"ignorePath": [
"./Source/Web/Scripts/Dest/**",
]
}