MSBuild Integration

I am trying to get Code Guard to work with our build process by utilizing MSBuild. All of the documentation says that a sample msbuild project is included in the install directory. With that being said I have 2 issues.

1. Where is SQL Code Guard Installed
2. Can someone provide the sample msbuild project?

Thanks,
Slava
Tagged:

Comments

  • Apologies for this issue. The MSBuild resources were indeed missing and have been reinstated. You can find these in the zip file available from the SQL Code Guard command line documentation page.
    David Atkinson
    Product Manager
    Redgate Software
  • That works great. The only other issue that appears to be happening is that the ExcludeFolder parameter is being ignored. Here is what I have: Directory screen shot shows the directory structure with 1 sql file and sub-directory full of sql files. MSbuild screen shot shows the configuration of msbuild to exclude the BuiltModel directory. lastly the execute screen shot shows that rules are being evaluated against scripts in the excluded directory.l5v2cmptunvl.png
    k32ei9fswtfa.png
    0zdxktxs2sx2.png

    Any help with the exclusion would be greatly appreciated.
  • Hi Slava_K,

    sorry for the inconvenience.

    As a temporary workaround try to add backslash to the end of SourcePath - "C:\Dev\Main\DB\ScriptsModel\"
Sign In or Register to comment.