Building database projects using TFS 2010 Beta 1<pre lang=x-xml>If you are using TFS 2010 Beta 1 and attempt to build a database project created using the GDR you will get the following error: C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\TeamData\Microsoft.Data.Schema.Common.targets (30): The expression &quot;$(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\VSTSDB@VSTSDBDirectory)&quot; cannot be evaluated. Fix the problem by editing the file &quot;Microsoft.Data.Schema.Common.targets&quot; in the folder &quot;...\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\TeamData&quot; Replace: &lt;VSTSDBDirectory Condition=&quot;'$(VSTSDBDirectory)' == ''&quot;&gt;$(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\VSTSDB@VSTSDBDirectory)&lt;/VSTSDBDirectory&gt; With &lt;VSTSDBDirectory Condition=&quot;'$(VSTSDBDirectory)' == ''&quot;&gt;$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\VSTSDB@VSTSDBDirectory)&lt;/VSTSDBDirectory&gt; </pre><hr class="sig">Duke Kamstra - Program Manager - VSTS Database Edition (Data Dude, DBPro)© 2009 Microsoft Corporation. All rights reserved.Tue, 26 May 2009 22:12:10 Z1f2cf14d-75d1-4979-96e7-b6a8d71f02b5http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/1f2cf14d-75d1-4979-96e7-b6a8d71f02b5#1f2cf14d-75d1-4979-96e7-b6a8d71f02b5http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/1f2cf14d-75d1-4979-96e7-b6a8d71f02b5#1f2cf14d-75d1-4979-96e7-b6a8d71f02b5Duke Kamstrahttp://social.msdn.microsoft.com/Profile/en-US/?user=Duke%20KamstraBuilding database projects using TFS 2010 Beta 1<pre lang=x-xml>If you are using TFS 2010 Beta 1 and attempt to build a database project created using the GDR you will get the following error: C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\TeamData\Microsoft.Data.Schema.Common.targets (30): The expression &quot;$(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\VSTSDB@VSTSDBDirectory)&quot; cannot be evaluated. Fix the problem by editing the file &quot;Microsoft.Data.Schema.Common.targets&quot; in the folder &quot;...\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\TeamData&quot; Replace: &lt;VSTSDBDirectory Condition=&quot;'$(VSTSDBDirectory)' == ''&quot;&gt;$(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\VSTSDB@VSTSDBDirectory)&lt;/VSTSDBDirectory&gt; With &lt;VSTSDBDirectory Condition=&quot;'$(VSTSDBDirectory)' == ''&quot;&gt;$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\VSTSDB@VSTSDBDirectory)&lt;/VSTSDBDirectory&gt; </pre><hr class="sig">Duke Kamstra - Program Manager - VSTS Database Edition (Data Dude, DBPro)Tue, 26 May 2009 22:11:39 Z2009-05-26T22:11:39Z