Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Happyrobot33 committed May 30, 2024
1 parent a6b9f1e commit e83beb3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CodeCoverage/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,15 @@ public static void Main(string[] args)

//check if we can see the Packages folder
Console.WriteLine("Initial Working Directory: " + workingDirectory);
//see if the packages folder exists
if(!Directory.Exists(workingDirectory + @"\Packages"))
{
//list everything in this directory
string[] directories = Directory.GetDirectories(workingDirectory);
foreach (string directory in directories)
{
Console.WriteLine("Directory: " + directory);
}
//if we cant, then we are in the wrong directory, so go up a few directories
workingDirectory = Directory.GetParent(workingDirectory).Parent.Parent.Parent.FullName;

Check warning on line 59 in CodeCoverage/Program.cs

View workflow job for this annotation

GitHub Actions / build-listing

Dereference of a possibly null reference.

Check warning on line 59 in CodeCoverage/Program.cs

View workflow job for this annotation

GitHub Actions / build-listing

Dereference of a possibly null reference.

Check warning on line 59 in CodeCoverage/Program.cs

View workflow job for this annotation

GitHub Actions / build-listing

Dereference of a possibly null reference.

Check warning on line 59 in CodeCoverage/Program.cs

View workflow job for this annotation

GitHub Actions / build-listing

Dereference of a possibly null reference.
}
Expand Down

0 comments on commit e83beb3

Please sign in to comment.