<rss version="2.0" 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:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>.NET Paradigm Shift</title>
        <link>http://geekswithblogs.net/ParadigmShift/Default.aspx</link>
        <description>Think of Something Different</description>
        <language>en-US</language>
        <copyright>ParadigmShift</copyright>
        <managingEditor>sq@swsdev.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <image>
            <title>.NET Paradigm Shift</title>
            <url>http://geekswithblogs.net/images/RSS2Image.gif</url>
            <link>http://geekswithblogs.net/ParadigmShift/Default.aspx</link>
            <width>77</width>
            <height>60</height>
        </image>
        <item>
            <title>Determining if you&amp;rsquo;re running on the build server with MSBuild &amp;ndash; Easy way</title>
            <category>.NET</category>
            <category>MSBuild</category>
            <link>http://geekswithblogs.net/ParadigmShift/archive/2012/08/27/determining-if-yoursquore-running-on-the-build-server-with-msbuild.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/ParadigmShift/archive/2012/08/27/determining-if-yoursquore-running-on-the-build-server-with-msbuild.aspx'&gt;http://geekswithblogs.net/ParadigmShift/archive/2012/08/27/determining-if-yoursquore-running-on-the-build-server-with-msbuild.aspx&lt;/a&gt;&lt;/p&gt;&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;</description>
            <dc:creator>ParadigmShift</dc:creator>
            <guid>http://geekswithblogs.net/ParadigmShift/archive/2012/08/27/determining-if-yoursquore-running-on-the-build-server-with-msbuild.aspx</guid>
            <pubDate>Mon, 27 Aug 2012 20:10:47 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/ParadigmShift/comments/150553.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/ParadigmShift/archive/2012/08/27/determining-if-yoursquore-running-on-the-build-server-with-msbuild.aspx#feedback</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>
        </item>
    </channel>
</rss>