There should be a specific type of rules which lead to error in developement time
We need to define a set of dependency rules which violating them generates error at development time, local visual studio build, and build server.
-
Gilda Khosravi commented
Yeah, I read it. Also, I need on-the fly error in development time. when a developer is violating a critical rule, should receive a compiler error.
-
Have you seen critical Rules? They can fail the build with the Quality Gate associated with
https://www.ndepend.com/default-rules/NDepend-Rules-Explorer.html?ruleid=CriticalRulesViolated#!This can fail the build on Build Machine and Azure DevOps / TFS, but not in Visual Studio.
https://www.ndepend.com/docs/quality-gates#BuildFailure