I've troubles with adding some sample code analyzer into a db project.
I followed this guide: https://msdn.microsoft.com/en-us/library/dn632175(v=vs.103).aspx
, but custom analyzer hadn't added.
What I was missing?
P.S. I'm using VS 2015 Enterprise
with SSDT 2016
Asked
Active
Viewed 506 times
2

snipervld
- 69
- 1
- 10
-
What new tests are you adding? Anything useful worth sharing with the SQL community? – David Atkinson Aug 03 '16 at 10:39
-
I was trying to add rule, that will check, if any unnamed constraint is exist. – snipervld Aug 03 '16 at 10:44
-
As a workaround, I created msbuild task, that triggers After build of the project. – snipervld Aug 03 '16 at 10:45
-
But did you manage to add the rule using the SSDT static analysis framework? – David Atkinson Aug 03 '16 at 10:47
1 Answers
2
If you are certain all is good from your side, it's probably due to the dll being in the wrong folder. When I hit this issue I find it easiest to run with logging and place the dll where ssdt is looking to rather than trial and error placing in random folders ☺
Kevin Cunnane has described the procedure in the comments on this page
https://blogs.msdn.microsoft.com/ssdt/2016/06/30/sql-server-data-tools-july-update-2/

DaveBally
- 113
- 6