I have an old class library project that was building fine in a previous version of Visual Studio (2017 IIRC). The project contains an HLSL-based pixel shader that generates a radial color picker. I have just ported it to VS2022 and it is no longer building telling me that it cannot find a build task. Here is the error message:
The "ShaderBuildTask.PixelShaderCompile" task could not be loaded from the assembly ShaderBuildTask, Version=1.0.3072.18169, Culture=neutral, PublicKeyToken=44e467d1687af125. Could not load file or assembly 'ShaderBuildTask, Version=1.0.3072.18169, Culture=neutral, PublicKeyToken=44e467d1687af125' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.AngularGradientShaderEffect
I have already installed the required shader compiler (ShaderBuildTaskSetup.msi) on my machine. Reloading the project and restarting VS don't help either.
Has anyone used pixel shaders in VS2022 to see what I'm missing?