• Advertisement
Sign in to follow this  

How do I turn off FXC in Visual Studio 2012

This topic is 1896 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have some shaders that are unfinished and I'm not using them anywhere in the program,but they're part of the project and Visual Studio gives me a
[quote]1>FXC : error X3501: 'main': entrypoint not found[/quote] why would it even ask me that,and since my shaders are compiled at run-time,why would FXC even activate during build time.How do I turn it off,I don't wanna keep removing/adding files to the project each time I build,just so this error wouldn't appear.

Share this post


Link to post
Share on other sites
Advertisement
It's asking you because VS 2012 has a MSBuild step for .hlsl files that compiles them with the shader compiler. If you right-click on the shader file in your project and go to the properties, you can exclude the file from the build process. Edited by MJP

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement