CodeQL Autobuild for Csharp Failing
I have added the C# lang to the lang matrix to test it on a c# file for my pipeline but I get this error when I run it;
Failure invoking /opt/hostedtoolcache/CodeQL/2.12.2-20230207/x64/codeql/csharp/tools/autobuild.sh with arguments .
Is there a solution to this or will I need to write my own build steps?
This is hard to say without knowing which build system your source code is written for.
There ought to be at least some output from the autobuilder appearing before the log line you quote, which will tell you something about how it failed.
(If you have just a single .cs file without surrounding infrastructure to define a project for MSBuild, autobuilding cannot be expected to work, and you'll have to write your own build steps).