mirror of
https://github.com/github/codeql.git
synced 2026-05-24 08:07:07 +02:00
C#: Tolerate missing solution files in tests
This commit is contained in:
@@ -61,6 +61,12 @@ namespace Semmle.Autobuild.Shared
|
||||
{
|
||||
try
|
||||
{
|
||||
// SolutionFile.Parse won't throw a FileNotFoundException if it is given a Windows path on a non-Windows platform
|
||||
if (!builder.Actions.FileExists(FullPath))
|
||||
{
|
||||
throw new FileNotFoundException(FullPath);
|
||||
}
|
||||
|
||||
solution = SolutionFile.Parse(FullPath);
|
||||
}
|
||||
catch (Exception ex) when (ex is InvalidProjectFileException || ex is FileNotFoundException)
|
||||
|
||||
Reference in New Issue
Block a user