Validate assemblies and namespaces in VAB config file

前端 未结 3 1251
半阙折子戏
半阙折子戏 2020-12-10 23:30

We are using version 4.1 of the validation application block. I am relatively new to it so I was wondering if it had the ability to either abstract out the configured namesp

3条回答
  •  佛祖请我去吃肉
    2020-12-11 00:23

    One of possible solutions that comes to me is using of AOP programming concepts. In short, for example in your case, you mark the "fragile" code with some attibute and at compile time check if the type, member function, property... is in a state you intendt it ti be in.

    Like a references:

    CSharpCornerArticle-2009 (old but still good one)

    PostSharp (may be the best tool on the market now for AOP)

    Rolsyn (compiler as a Service provided by MS. You can write your own small parser of C# or VB.NET code and inject it inside you CI environment.

    Hope this helps.

提交回复
热议问题