I googled this quite a bit and cannot find a solution for the life of me. I am working with Direct3D 11 (in the tutorials under /Sample/ - the cube one). It uses .fx, and I know it is deprecated, but there are no tutorials out there that don't use it. Pretty much, whenever I build my program, I get the error "fxc.exe exited with code 1". Here is my code in "Shader.fx":
And under the properties of the file I have ShaderType set to "Effect(/fx)". And I don't have anything under Entrypoint name. I am using Visual Studio 2013, by the way.
If you're compiling shader at runtime, exclude your shader file from build. (Open properties for your shader file, and put there exclude from build yes)