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
- DirectX Project Property Pages, Configuration Properties, C/C+, Command Line, Additional Options, add "/clr:nostdlib" (string between quotes).
- Configuration Properties, C/C++, General, Resolve #using References, add "$(FrameworkPathOverride)" (string between quotes).
- Configuration Properties, General, Target Name, change from "$(ProjectName)" to "Microsoft.WindowsAPICodePack.DirectX" (to match Linker, Output File).
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.
What more, you need to change all .net Project Target Framework to .net Framework 4.
If being asked whether override already exists vcxproj file, select no unless you want to repeat above steps many times.
If it says "xxx.dll" not found, which is an output of a C++ Project, rebuild the whole Solution.
Posted
01-01-2010 5:07 PM
by
Mullen