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.
![](https://secure.gravatar.com/avatar/4d22dfbecb3a3741c7cd92d4337a7ff4?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
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