<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>Dev Env, TFS, MSBuild etc</title>
        <link>http://geekswithblogs.net/TimH/category/8169.aspx</link>
        <description>Develop environment, TFS, MSBuild, etc</description>
        <language>en-NZ</language>
        <copyright>Tim Huffam</copyright>
        <managingEditor>timhuffam@gmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>VS 2008 crashes when running unit tests - VSPERF?</title>
            <link>http://geekswithblogs.net/TimH/archive/2008/08/27/vs-2008-crashes-when-running-unit-tests---vsperf.aspx</link>
            <description>&lt;p&gt;Sometimes Visual Studio 2008 (Team System Developer Edition - with Team Explorer and TFS Power Tools) crashes (disappearing completely) when running unit tests.&lt;/p&gt;
&lt;p&gt;I have not yet tried SP1 for VS2008 - will hopefully try this in the next week or two.&lt;/p&gt;
&lt;p&gt;Not really sure what causes this - but have noticed that the following error is written to the windows event log prior to the crash (not at the same time).&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;Event Type: Error&lt;br /&gt;
Event Source: VSPERF&lt;br /&gt;
Event Category: None&lt;br /&gt;
Event ID: 1406&lt;br /&gt;
Date:  22/08/2008&lt;br /&gt;
Time:  16:27:18&lt;br /&gt;
User:  N/A&lt;br /&gt;
Computer: MYPC&lt;br /&gt;
Description:&lt;br /&gt;
&lt;font face="Arial"&gt;There was an error connecting to the Logger Engine while registering C:\Dev\DEV\Release1\Source\MyWebProject\bin\MyWebProject.dll for coverage.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Initially I thought it was a particular test or peice of target code that caused it, but found that the crash occured at seemingly random moments ie I tried running all tests and it would crash at test number 259 (out of 264), then tried running the first 100 tests and it crashed - then tried the last 20 tests and it crashed-  even tried running 1 test and it crashed.  This was the worst case of this problem - over the past few weeks it (VS crashing/disappearing) would only happen every now and then.&lt;/p&gt;
&lt;p&gt;The only work around I've found is to replace or remove the workspace and start again...&lt;/p&gt;
&lt;ol&gt;
    &lt;li&gt;If you have pending changes, shelve them first.&lt;/li&gt;
    &lt;li&gt;Using Source Control Explorer, remove the workspace.&lt;/li&gt;
    &lt;li&gt;Close the solution in VS.&lt;/li&gt;
    &lt;li&gt;Within a VS command prompt run the following command to remove all workspaces (if you have many workspaces and only want to remove the one workspace then specify it's name instead of the asterisk used below):&lt;br /&gt;
        &lt;font face="Courier New" color="#0000ff"&gt;tf workspaces /remove:*&lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;Use the Source Control Explorer to recreate a new workspace.  &lt;br /&gt;
    &lt;strong&gt;Note:&lt;/strong&gt; if you have scripts/macros that reference your original workspace source dir, then it would pay to use the same dir - if you do,  make sure you delete the contents of this dir before reassigning it to the new workspace.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;HTH&lt;br /&gt;
Tim&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;font face="Arial"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=124708"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=124708" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/124708.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2008/08/27/vs-2008-crashes-when-running-unit-tests---vsperf.aspx</guid>
            <pubDate>Tue, 26 Aug 2008 21:36:21 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/124708.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2008/08/27/vs-2008-crashes-when-running-unit-tests---vsperf.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/124708.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/124708.aspx</trackback:ping>
        </item>
        <item>
            <title>Visual Studio (VS200) loosing it's source control bindings</title>
            <link>http://geekswithblogs.net/TimH/archive/2008/06/12/visual-studio-vs200-loosing-its-source-control-bindings.aspx</link>
            <description>&lt;p&gt;VSTS2008 has, on occasion, lost it's source control settings - specifically, the bindings to TFS server for a given solution and it's projects.&lt;/p&gt;
&lt;p&gt;This seems to be because the solution and project files are not being updated when you use the TFS Source Control Explorer to do a 'Get Latest'  - a 'feature' of VS2008 which allows you to work disconnected/offline - however it seems to have an issue trying to reconnect itself.&lt;/p&gt;
&lt;p&gt;To resolve we simply removed the local source directory and did a 'Get Specific Version - get latest'.&lt;/p&gt;
&lt;p&gt;RickSW had a similar &lt;a href="http://forums.msdn.microsoft.com/en-US/vssourcecontrol/thread/4fc04db9-dfe9-4f42-8f6c-2a3ed8f1f881/"&gt;experience&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=122806"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=122806" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/122806.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2008/06/12/visual-studio-vs200-loosing-its-source-control-bindings.aspx</guid>
            <pubDate>Wed, 11 Jun 2008 23:08:41 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/122806.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2008/06/12/visual-studio-vs200-loosing-its-source-control-bindings.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/122806.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/122806.aspx</trackback:ping>
        </item>
        <item>
            <title>MSBuild fails when building solutions with database projects</title>
            <link>http://geekswithblogs.net/TimH/archive/2008/05/27/msbuild-fails-when-building-solutions-with-database-projects.aspx</link>
            <description>&lt;div&gt;&lt;font face="Arial" size="2"&gt;&lt;span&gt;There is a known problem with MSBuild whereby it does not cater for database project types as these project types (database projects) are not buildable.  This is only an issue when specifying a solution file (as the item to build) within the MSBuild script.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face="Arial" size="2"&gt;&lt;span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face="Arial" size="2"&gt;&lt;span&gt;Because these are not buildable projects VS does not show them in the solution configuration manager.  Unfortunately this means they cannot be manually configured not to build (as a work around to this problem).  &lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face="Arial" size="2"&gt;&lt;span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face="Arial" size="2"&gt;&lt;span&gt;When using solution files within MSBuild, it does not allow you to exclude specific projects.  There are a few options to work around this - as mentioned in this article:  &lt;/span&gt;&lt;/font&gt;&lt;font face="Arial" size="2"&gt;&lt;a target="_blank" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=640825&amp;amp;SiteID=1"&gt;http://forums.microsoft.com&lt;wbr&gt;&lt;/wbr&gt;/MSDN/ShowPost.aspx?PostID&lt;wbr&gt;&lt;/wbr&gt;=640825&amp;amp;SiteID=1&lt;/a&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;font face="Arial" size="2"&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;font size="2"&gt;Another simple solution is to just remove the database project from the solution - and if you really want it still within the solution - just create another project of type class library and just reuse the original project's files.  By using another project type (like class library) you can use the configuration manager to explicitly flag this project not to build (remember to update each configuration).&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;font face="Arial" size="2"&gt;&lt;span&gt;&lt;/span&gt;&lt;/font&gt;&lt;font face="Arial" size="2"&gt;&lt;span&gt;This issue affects TFS continuous integration builds.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face="Arial" size="2"&gt;&lt;span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
 &lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;font face="Arial" size="2"&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=122404"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=122404" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/122404.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2008/05/27/msbuild-fails-when-building-solutions-with-database-projects.aspx</guid>
            <pubDate>Tue, 27 May 2008 06:20:16 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/122404.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2008/05/27/msbuild-fails-when-building-solutions-with-database-projects.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/122404.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/122404.aspx</trackback:ping>
        </item>
    </channel>
</rss>