<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Build on Marko Apfel</title><link>http://blog.marko-apfel.de/tags/build/</link><description>Recent content in Build on Marko Apfel</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sat, 04 Jun 2011 01:19:00 +0200</lastBuildDate><atom:link href="http://blog.marko-apfel.de/tags/build/index.xml" rel="self" type="application/rss+xml"/><item><title>Code Contracts: For unit test a manual rebuild is needed for toggeling “runtime checking”</title><link>http://blog.marko-apfel.de/posts/code-contracts-for-unit-test-a-manual-rebuild-is-needed-for-toggeling-runtime-checking/</link><pubDate>Sat, 04 Jun 2011 01:19:00 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/code-contracts-for-unit-test-a-manual-rebuild-is-needed-for-toggeling-runtime-checking/</guid><description>&lt;p&gt;Toggeling the checkbox &lt;em&gt;Perform Runtime Contract Checking&lt;/em&gt; lets run the next application start with the new set option. But for unit test an explicit new build will apply the option for the next run.&lt;/p&gt;</description></item><item><title>Suppressing Add-in-registration task during build process</title><link>http://blog.marko-apfel.de/posts/suppressing-add-in-registration-task-during-build-process/</link><pubDate>Mon, 16 May 2011 07:17:00 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/suppressing-add-in-registration-task-during-build-process/</guid><description>&lt;p&gt;If you develop ArcGIS Add-ins with Visual Studio under limited permissions you get during the build process an error, that the stuff could not be registered.&lt;/p&gt;
&lt;p&gt;Normally its enough to run one times this build as an admin. Then all needed information are set and also taken for users with limited access.&lt;/p&gt;</description></item><item><title>MSBuild Exec task: using quotes in WorkingDirectory does not work</title><link>http://blog.marko-apfel.de/posts/msbuild-exec-task-using-quotes-in-workingdirectory-does-not-work/</link><pubDate>Fri, 27 Nov 2009 10:01:00 +0100</pubDate><guid>http://blog.marko-apfel.de/posts/msbuild-exec-task-using-quotes-in-workingdirectory-does-not-work/</guid><description>&lt;p&gt;For a general applicability I tried to specify the &lt;code&gt;WorkingDirectory&lt;/code&gt; attribute in a quoted manner:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-xml" data-lang="xml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;WorkingDir&amp;gt;&lt;/span&gt;&lt;span class="ni"&gt;&amp;amp;quot;&lt;/span&gt;$(SolutionRoot)\EsriDE.Commons\tools\EsriDE\&lt;span class="ni"&gt;&amp;amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;/WorkingDir&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;or&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-xml" data-lang="xml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;DoubleQuotes&amp;gt;&lt;/span&gt;%22&lt;span class="nt"&gt;&amp;lt;/DoubleQuotes&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;WorkingDir&amp;gt;&lt;/span&gt;$(DoubleQuotes)$(SolutionRoot)\EsriDE.Commons\tools\EsriDE\$(DoubleQuotes)&lt;span class="nt"&gt;&amp;lt;/WorkingDir&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The Exec task self is&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-xml" data-lang="xml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;Exec&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="na"&gt;WorkingDirectory=&lt;/span&gt;&lt;span class="s"&gt;&amp;#34;$(WorkingDir)&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="na"&gt;Command=&lt;/span&gt;&lt;span class="s"&gt;&amp;#34;$(ExtractComCategories) $(InputDirectoryArg) $(FilterArg) $(SeparationArg) $(OutputDirectoryArg) $(OutputFileArg) $(OutputFormatArg)&amp;#34;&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Every variant throws during building the exception MSB6003 (The directory name is invalid):&lt;/p&gt;</description></item><item><title>Stopping a build at the TFS</title><link>http://blog.marko-apfel.de/posts/stopping-a-build-at-the-tfs/</link><pubDate>Thu, 26 Nov 2009 07:54:00 +0100</pubDate><guid>http://blog.marko-apfel.de/posts/stopping-a-build-at-the-tfs/</guid><description>&lt;p&gt;Open a “visual studio command prompt” and try:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bat" data-lang="bat"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;tfsbuild stop https://*****:8143 RXXXXX_Sourcecode Gen_2.6_branch_test_20080827.1
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item><item><title>Visual Studio: Building parts of a solution</title><link>http://blog.marko-apfel.de/posts/visual-studio-building-parts-of-a-solution/</link><pubDate>Sun, 01 Nov 2009 07:10:00 +0100</pubDate><guid>http://blog.marko-apfel.de/posts/visual-studio-building-parts-of-a-solution/</guid><description>&lt;p&gt;Often in large solutions I had the problem that a couple of little chances needs building some projects. Unfortunately Visual Studio tends to build more projects than needed.&lt;/p&gt;
&lt;p&gt;Formerly I used the configuration manager to deactivate unused projects. This is a overhead which sucks.&lt;/p&gt;</description></item><item><title>Post-build event with folders which contains spaces</title><link>http://blog.marko-apfel.de/posts/post-build-event-with-folders-which-contains-spaces/</link><pubDate>Mon, 27 Apr 2009 03:47:00 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/post-build-event-with-folders-which-contains-spaces/</guid><description>&lt;p&gt;If you want to use a Post-build event with folders which contains a space often you get an error like:&lt;/p&gt;
&lt;p&gt;The system cannot find the file specified.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-txt" data-lang="txt"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(3397,13):
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;error MSB3073: The command
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;#34;COPY C:\Projekte\_Learning By Doing\EsriDE.QA.StyleCop\bin\Debug\EsriDE.QA.StyleCop.dll
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;#34;C:\Program Files\Microsoft StyleCop 4.3&amp;#34;&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;exited with code 1.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;In my case I used the macro &lt;code&gt;$(TargetPath)&lt;/code&gt; in following line which contains indirectly the spaces in &lt;code&gt;_Learning By Doing&lt;/code&gt;:&lt;/p&gt;</description></item><item><title>HTML Help Compiler Error HHC3004</title><link>http://blog.marko-apfel.de/posts/html-help-compiler-error-hhc3004/</link><pubDate>Wed, 11 Mar 2009 11:28:00 +0100</pubDate><guid>http://blog.marko-apfel.de/posts/html-help-compiler-error-hhc3004/</guid><description>&lt;p&gt;Today i had an error by building my sandcastle documentation project.&lt;/p&gt;
&lt;p&gt;After compiling during opening the output instead my chm-file in the help viewer the internet explorer pops up with an error message that the destination could not be found.
So i took a look in the log of the compile process and there was some warnings of the following type listed:&lt;/p&gt;</description></item></channel></rss>