<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jim Pelletier on Medium]]></title>
        <description><![CDATA[Stories by Jim Pelletier on Medium]]></description>
        <link>https://medium.com/@pjimmy?source=rss-b8ab8de0e6e4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*y3Cm-bGiX3Keob3jXN0_Cw.png</url>
            <title>Stories by Jim Pelletier on Medium</title>
            <link>https://medium.com/@pjimmy?source=rss-b8ab8de0e6e4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 17:37:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pjimmy/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Melbourne ALT.NET is evolving]]></title>
            <link>https://medium.com/@pjimmy/melbourne-alt-net-is-evolving-315d0d4dbd92?source=rss-b8ab8de0e6e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/315d0d4dbd92</guid>
            <dc:creator><![CDATA[Jim Pelletier]]></dc:creator>
            <pubDate>Tue, 17 Dec 2019 21:49:26 GMT</pubDate>
            <atom:updated>2019-12-17T21:49:26.743Z</atom:updated>
            <content:encoded><![CDATA[<p>A long long time ago, in a world of drag and drop rapid application development where robocopy ruled deployments, some .net developers looked to the sky… past towering tomes full of heavy enterprise application “best practices” and imagined a better world… <a href="http://alt.net/">alt.net</a> was born</p><p>Today we live in a world where .net frameworks are built in the open, taking pull requests from the community, where the standard toolset for deploying to azure supports continuous delivery and were almost everyone (at least thinks) they know what TDD is ;)</p><p>Is everything perfect? No. But we have come to believe that the best way forward is for alt .net to evolve. Communities thrive on unity, and in today’s landscape I believe we will become a stronger community and do more to advance development practices in the .net community by coming together with other parts of the Melbourne .net community.</p><p>What this looks like we’re not sure yet… and is something we’ll work out together. If you’ve enjoyed our community or would like to be a part of shaping what comes next, we’d love to hear from you! We’ll be getting a group of amazing people together — along with members of VIC .net and other parts of the Melbourne community — early next year to begin to shape the things to come. We would really love it for you to be a part of that. Please contact me clicking “Send Jim Pelletier a message” in this email, via meetup message or on twitter to find out more (@pjimmy my DMs are open).</p><p>Many thanks are due to everyone who has made this community an amazing one to be a part of for close to 15 years. There are far too many of you to single out, but we’re so very thankful to every one of you who has made this such an amazing community… you all know who you are :) And of course I have to give a big shout out to Andrew Bienert for getting us started all those years ago, and Page Up for being such an accomodating host in recent years.</p><p>Lookout for the announcement of a final <a href="http://alt.net/">alt.net</a> social gathering early in the new year and stay tuned to this meetup to see what exciting new thing rises from these ashes :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/0*iacEuSgBns1lpv_H.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=315d0d4dbd92" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NDepend & Appveyor]]></title>
            <link>https://medium.com/@pjimmy/ndepend-appveyor-4470373d1cab?source=rss-b8ab8de0e6e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4470373d1cab</guid>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[dotnet]]></category>
            <category><![CDATA[ndepend]]></category>
            <category><![CDATA[ci]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <dc:creator><![CDATA[Jim Pelletier]]></dc:creator>
            <pubDate>Mon, 03 Sep 2018 10:53:48 GMT</pubDate>
            <atom:updated>2018-09-03T21:31:19.407Z</atom:updated>
            <content:encoded><![CDATA[<p>Build quality as part of continuous integration</p><p>In this article I provide step by step instructions on how to integrate NDepend into your CI pipeline for quality control and historical analytics. For quality control I will demonstrate how to fail your build when violating an NDepend rule and for historical analytics we will publish the NDepend report as a build artifact.</p><p><strong>Prerequisites &amp; Assumptions</strong></p><p>In order to follow along with the steps provided in this article there are a few prerequisites. You will need:</p><ul><li>A C# project of some kind checked into GitHub.</li><li>An NDepend build server license file.</li></ul><p>I have also assumed you know how to work with .NET, Visual Studio and Git.</p><p><strong>Making the tools available during the build</strong></p><p>In order to run NDepend as part of you build pipeline you will need to make the NDepend.Console.exe available to run during the build. When working with a cloud build agent like Appveyor, options for installing tools and setting up the environment are limited. We’ll simply be checking NDepend into source control. First download the zip file from <a href="https://www.ndepend.com/download">https://www.ndepend.com/download</a>. Then copy its contents into a tools directory. I put mine in ./tools/NDepend. You will also need to put your build server license file in here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*lzGtXiPs6F3HIxWaTV4Rlg.png" /><figcaption>Directory listing of ./tools/NDepend</figcaption></figure><p><strong>Create an NDepend project</strong></p><p>To do anything with NDepend we need at create an NDepend project. The way to get this done is to:</p><ol><li>Open your solution in Visual Studio.</li><li>Build your solution to produce assemblies.</li><li>Select “Attach New NDepend project to Current VS Solution” from the NDepend menu.</li><li>Click “Add Assemblies of VS Solution(s)”.</li><li>Select your solution.</li><li>Click “Analyze a single .NET assembly”.</li><li>Select “Edit Project” from the “Project” menu in the “NDepend” menu.</li><li>Select “Paths Referenced” on the right hand side.</li><li>Select each path listed and Right click to select “Set as Path Relative (to the NDepend Project File Location)”.</li><li>Save your changes.</li></ol><p><strong>Create your build script</strong></p><p>Next we need to add a build script to tell AppVeyor how to build your project. Full details of how Appveyor build scripts work can be found in the Appveyor documentation <a href="https://www.appveyor.com/docs/build-configuration/">https://www.appveyor.com/docs/build-configuration/</a> but the one I’ll include here is pretty self explanatory and is correct at the time of writing. The file is placed in the root of the repository and is called appveyor.yaml. The interesting thing to note is that we need to resolve the full absolute path of the NDepend project file to pass in to NDepend.</p><pre>image: Visual Studio 2017</pre><pre>before_build:</pre><pre>  - ps: nuget restore</pre><pre>build:</pre><pre>  project: SomeProject.sln</pre><pre>after_build:</pre><pre>  - ps: $ndproj = Resolve-Path .\SomeProject.ndproj</pre><pre>  - ps: .tools\NDepend\NDepend.Console.exe $ndproj</pre><p>At this stage we are ready to check this code in to github and push.</p><p><strong>Setting up AppVeyor and our first build</strong></p><p>Next we need to set up our GitHub repo to build in AppVeyor.</p><ol><li>Log in or sign up to Appveyor using your GitHub account.</li><li>Click “New Project” from the home screen.</li><li>Add your project from the list of repos available from your GitHub account.</li><li>Click “New Build”.</li></ol><p><strong>Failing the build</strong></p><p>NDepend will return a non zero exit code on Quality Gate failure. This will in turn trigger Appveyor to mark the build as failed. The easiest way to test this is to modify your “Critical Issues” quality gate. First remove the predicate that restricts this rule to considering only critical issues. Then reduce the failif threshold so it will fail on a single issue. With the default rule set and nearly any solution this should be enough to trip the quality gate. Your rule should now look like this:</p><pre>// &lt;QualityGate Name=&quot;Critical Issues&quot; Unit=&quot;issues&quot; /&gt;</pre><pre>failif count &gt; 1 issues</pre><pre>warnif count &gt; 0 issues</pre><pre>from i in Issues</pre><pre>select new { i, i.Severity, i.Debt, i.AnnualInterest }</pre><p><strong>Publishing the NDepend report</strong></p><p>To publish the NDepend report we need a bunch of files the NDepend writes to ./NDependOut during the build process. Appveyor allows us to zip these files up and present them for download. Add the following to the end of your appveyor.yaml file:</p><pre>artifacts:</pre><pre>  - path: NDependOut</pre><pre>    name: NDependOut</pre><pre>    type: zip</pre><p>Then download the zip file from the “Artifacts” tab on a completed build and extract it to view the html report.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4470373d1cab" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>