<feed xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
    <title>.NET Paradigm Shift</title>
    <link rel="self" type="application/xml" href="http://geekswithblogs.net/ParadigmShift/Atom.aspx" />
    <subtitle type="html">Think of Something Different</subtitle>
    <id>http://geekswithblogs.net/ParadigmShift/Default.aspx</id>
    <author>
        <name>ParadigmShift</name>
        <uri>http://geekswithblogs.net/ParadigmShift/Default.aspx</uri>
    </author>
    <generator uri="http://subtextproject.com" version="Subtext Version 0.0.0.0">Subtext</generator>
    <updated>2012-11-19T11:01:47Z</updated>
    <entry>
        <title>Determining if you&amp;rsquo;re running on the build server with MSBuild &amp;ndash; Easy way</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/ParadigmShift/archive/2012/08/27/determining-if-yoursquore-running-on-the-build-server-with-msbuild.aspx" />
        <id>http://geekswithblogs.net/ParadigmShift/archive/2012/08/27/determining-if-yoursquore-running-on-the-build-server-with-msbuild.aspx</id>
        <published>2012-08-27T14:10:47-06:00:00</published>
        <updated>2012-08-27T14:14:37Z</updated>
        <content type="html">&lt;p&gt;&lt;font size="4"&gt;When you're customizing MSBuild in building a visual studio project, it often becomes important to determine if the build is running on the build server or your development environment. &lt;/font&gt;&lt;/p&gt;&lt;font size="4"&gt;  &lt;/font&gt;&lt;p&gt;&lt;font size="4"&gt;This information can change the way you set up path variables and other Conditional tasks.I've found many different answers online. &lt;/font&gt;&lt;/p&gt;&lt;font size="4"&gt;  &lt;/font&gt;&lt;p&gt;&lt;font size="4"&gt;It seems like they all only worked under certain conditions, so none of them were guaranteed to be consistent.So here's the simplest way I've found that has not failed me yet.&lt;/font&gt; &lt;/p&gt;  &lt;p&gt;&lt;span style="color: blue;"&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre class="code"&gt;&lt;font size="4"&gt;  &lt;span style="color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;PropertyGroup&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;gt;
    &amp;lt;!-- &lt;/span&gt;&lt;span style="color: green;"&gt;Determine if the current build is running on the build server &lt;/span&gt;&lt;span style="color: blue;"&gt;--&amp;gt;
    &amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;IsBuildServer&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;gt;&lt;/span&gt;false&lt;span style="color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;IsBuildServer&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;gt;
    &amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;IsBuildServer &lt;/span&gt;&lt;span style="color: red;"&gt;Condition&lt;/span&gt;&lt;span style="color: blue;"&gt;=&lt;/span&gt;"&lt;span style="color: blue;"&gt;'$(BuildUri)' != ''&lt;/span&gt;"&lt;span style="color: blue;"&gt;&amp;gt;&lt;/span&gt;true&lt;span style="color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;IsBuildServer&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;gt;
  &amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;PropertyGroup&lt;/span&gt;&lt;/font&gt;&lt;span style="color: blue;"&gt;&lt;font size="4"&gt;&amp;gt;&lt;/font&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;pre class="code"&gt;&lt;span style="color: blue;"&gt;&lt;/span&gt; &lt;/pre&gt;&lt;pre class="code"&gt;&lt;span style="color: blue;"&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;Shahzad Qureshi is a Software Engineer and Consultant in Salt Lake City, Utah, USA&lt;/p&gt;&lt;p&gt;His certifications include:&lt;/p&gt;&lt;p&gt;Microsoft Certified System Engineer &lt;br /&gt;3CX Certified Partner &lt;br /&gt;Global Information Assurance Certification – Secure Software Programmer – .NET&lt;/p&gt;&lt;p&gt;He is the owner of Utah VoIP Store at &lt;a href="http://www.utahvoipstore.com/"&gt;&lt;font color="#285090"&gt;www.UtahVoIPStore.com&lt;/font&gt;&lt;/a&gt; and SWS Development at &lt;a href="http://www.swsdev.com/"&gt;&lt;font color="#285090"&gt;www.swsdev.com&lt;/font&gt;&lt;/a&gt; and publishes windows apps under the name Blue Voice.&lt;/p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;img src="http://geekswithblogs.net/ParadigmShift/aggbug/150553.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/ParadigmShift/comments/150553.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/ParadigmShift/comments/commentRss/150553.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/ParadigmShift/services/trackbacks/150553.aspx</trackback:ping>
    </entry>
</feed>