<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://mullenstudio.net/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Development</title><subtitle type="html" /><id>http://mullenstudio.net/blogs/development/atom.aspx</id><link rel="alternate" type="text/html" href="http://mullenstudio.net/blogs/development/default.aspx" /><link rel="self" type="application/atom+xml" href="http://mullenstudio.net/blogs/development/atom.aspx" /><generator uri="http://communityserver.org" version="4.1.31106.3070">Community Server</generator><updated>2010-01-01T17:07:00Z</updated><entry><title>How to build Windows API Code Pack / DirectX in Visual Studio 2010 Beta 2</title><link rel="alternate" type="text/html" href="/blogs/development/archive/2010/01/01/how-to-build-windows-api-code-pack-directx-in-visual-studio-2010-beta-2.aspx" /><id>/blogs/development/archive/2010/01/01/how-to-build-windows-api-code-pack-directx-in-visual-studio-2010-beta-2.aspx</id><published>2010-01-02T00:07:00Z</published><updated>2010-01-02T00:07:00Z</updated><content type="html">&lt;p&gt;&amp;nbsp;There is a bug in Visual Studio 2010 Beta 2, which make certain project from Visual Studio 2008 cannot build successfully, such as DirectX.sln fro Windows API Code Pack. Here is the solution&lt;/p&gt;
&lt;ol style="font-style:normal;margin-top:0in;unicode-bidi:embed;font-family:Calibri;direction:ltr;margin-bottom:0in;margin-left:0.375in;font-size:11pt;font-weight:normal;"&gt;
&lt;li style="margin-top:0px;margin-bottom:0px;vertical-align:middle;"&gt;&lt;span style="font-style:normal;font-family:Calibri;font-size:11pt;vertical-align:baseline;font-weight:normal;text-decoration:none;"&gt;DirectX Project Property Pages, Configuration Properties,&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;C/C+, Command Line, Additional Options, add &amp;quot;/clr:nostdlib&amp;quot; (string between quotes).&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-top:0px;margin-bottom:0px;vertical-align:middle;"&gt;&lt;span style="font-style:normal;font-family:Calibri;font-size:11pt;vertical-align:baseline;font-weight:normal;text-decoration:none;"&gt;Configuration Properties, C/C++, General, Resolve #using References, add &amp;quot;$(FrameworkPathOverride)&amp;quot; (string between quotes).&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-top:0px;margin-bottom:0px;vertical-align:middle;"&gt;&lt;span style="font-style:normal;font-family:Calibri;font-size:11pt;vertical-align:baseline;font-weight:normal;text-decoration:none;"&gt;Configuration Properties, General, Target Name, change from &amp;quot;$(ProjectName)&amp;quot; to &amp;quot;Microsoft.WindowsAPICodePack.DirectX&amp;quot; (to match Linker, Output File).&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p style="margin-top:0px;margin-bottom:0px;vertical-align:middle;"&gt;&lt;span style="font-style:normal;font-family:Calibri;font-size:11pt;vertical-align:baseline;font-weight:normal;text-decoration:none;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in;font-family:Calibri;font-size:11pt;"&gt;For the Samples, you need to change the properties of Direct3DX10 and Controls in the similar way, and Add $(DXSDK_DIR)Include and $(DXSDK_DIR)Lib\x86 (or x64) to Additional Include / Library Directories of Direct3DX10 Project.&lt;/p&gt;
&lt;p style="margin:0in;font-family:Calibri;font-size:11pt;"&gt;What more, you need to change all .net Project Target Framework to .net Framework 4.&lt;/p&gt;
&lt;p style="margin:0in;font-family:Calibri;font-size:11pt;"&gt;If being asked whether override already exists vcxproj file, select no unless you want to repeat above steps many times.&lt;/p&gt;
&lt;p style="margin:0in;font-family:Calibri;font-size:11pt;"&gt;If it says &amp;quot;xxx.dll&amp;quot; not found, which is an output of a C++ Project, rebuild the whole Solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://mullenstudio.net/aggbug.aspx?PostID=992" width="1" height="1"&gt;</content><author><name>Mullen</name><uri>http://mullenstudio.net/members/Mullen/default.aspx</uri></author><category term="Windows API Code Pack" scheme="http://mullenstudio.net/blogs/development/archive/tags/Windows+API+Code+Pack/default.aspx" /><category term="Visual Studio" scheme="http://mullenstudio.net/blogs/development/archive/tags/Visual+Studio/default.aspx" /><category term="DirectX" scheme="http://mullenstudio.net/blogs/development/archive/tags/DirectX/default.aspx" /></entry></feed>