locked
Architecture validation during build (VSTS 2010) RRS feed

  • Question

  • I have created a layerdiagram in my solution. Now I need to validate it during the continuous build.
    It doesn't validate automatically (btw, why doesn't it do that?)

    Which build activity do I need to add, and how do I configure it?

    Loek.
     
    Wednesday, December 3, 2008 1:38 PM

Answers

  • Hi loek,

    I think this feature isn't fully implemented yet... you can get it working by adding a validation target to your Csproj file
    <Import Project="$(ValidateTargetsPath)\Microsoft.VisualStudio.TeamArchitect.Validate.Targets" />
    and change the None in validate with your layer diagram <Validate Include="xxxxxx.layer" />...

    now you can create a msbuild action /t:ValidateArchitecture.

    Hopeful they will make this mature ;-) 
    http://www.ClemensReijnen.nl
    Sunday, December 7, 2008 5:37 PM
  •  Yes, Clemens is quite right. Please see my recent post on this: http://blogs.msdn.com/camerons/archive/2008/12/11/incorporate-layer-validation-in-your-builds.aspx
    Hope that helps!

    Cameron
    Cameron Skinner
    • Proposed as answer by CameronS - MSFT Thursday, December 11, 2008 2:59 PM
    • Marked as answer by NL-LoekMVP Thursday, December 11, 2008 7:39 PM
    Thursday, December 11, 2008 2:58 PM

All replies

  • Hi loek,

    I think this feature isn't fully implemented yet... you can get it working by adding a validation target to your Csproj file
    <Import Project="$(ValidateTargetsPath)\Microsoft.VisualStudio.TeamArchitect.Validate.Targets" />
    and change the None in validate with your layer diagram <Validate Include="xxxxxx.layer" />...

    now you can create a msbuild action /t:ValidateArchitecture.

    Hopeful they will make this mature ;-) 
    http://www.ClemensReijnen.nl
    Sunday, December 7, 2008 5:37 PM
  •  Yes, Clemens is quite right. Please see my recent post on this: http://blogs.msdn.com/camerons/archive/2008/12/11/incorporate-layer-validation-in-your-builds.aspx
    Hope that helps!

    Cameron
    Cameron Skinner
    • Proposed as answer by CameronS - MSFT Thursday, December 11, 2008 2:59 PM
    • Marked as answer by NL-LoekMVP Thursday, December 11, 2008 7:39 PM
    Thursday, December 11, 2008 2:58 PM