We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55d7b74 commit dc7cf27Copy full SHA for dc7cf27
1 file changed
csharp/autobuilder/Semmle.Autobuild.CSharp/CSharpAutobuilder.cs
@@ -156,6 +156,16 @@ protected override void AutobuildFailureDiagnostic()
156
};
157
}
158
159
+ // both dotnet and msbuild builds require project or solution files; if we haven't found any
160
+ // then neither of those rules would've worked
161
+ else if (this.ProjectsOrSolutionsToBuild.Count == 0)
162
+ {
163
+ var source = GetDiagnosticSource("no-projects-or-solutions", "No project or solutions files found");
164
+ message = new DiagnosticMessage(source)
165
166
+ PlaintextMessage = "CodeQL could not find any project or solution files in your repository."
167
+ };
168
+ }
169
else
170
{
171
// none of the above apply; produce a generic autobuild failure message
0 commit comments