csproj-synchronizer

1.2.3 • Public • Published

csproj-synchronizer

Goal

  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] Automaticly fix issues and overwrite back to csproj file.
  4. 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

  1. npm i -g csproj-synchronizer
  2. 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/**",
  ]
}

Readme

Keywords

none

Package Sidebar

Install

npm i csproj-synchronizer

Weekly Downloads

2

Version

1.2.3

License

ISC

Unpacked Size

18 kB

Total Files

10

Last publish

Collaborators

  • liyaodonglibin