Search code examples
directxgpunvidiahlsldirectx-10

Cannot compile nVidia HLSL sample - FXC Task does not support CommandLineTemplate


I'm trying to compile a sample from the nVidia website to do solid wireframe rendering:

http://developer.download.nvidia.com/SDK/10/direct3d/samples.html

enter image description here

When I open the VC++ project in Visual Studio 2012 and compile, I receive this error message:

Error 5 error MSB4064: The "CommandLineTemplate" parameter is not supported by the "FXC" task. Verify the parameter exists on the task, and it is a settable public instance property.

enter image description here

Am I missing a framework or SDK? Or perhaps this sample needs to be modified to work with VS2012?

Many thanks!


Solution

  • Do you have the latest DX SDK installed?

    Also, is it possible that there is a custom compile action for VS to run FXC (shader compiler) that you are missing?

    If you can find the parameters needed to compile their shaders via fxc, you can run it via the command prompt and is located in the bin folder of the DX SDK.