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 d3b9af1 commit a728cf1
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions CodeCoverage/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public partial class Program
//static string testAssemblyPath = workingDirectory + @"\Packages\com.vrchat.base\Runtime\VRCSDK\Plugins\VRCSDKBase.dll";
static string workingDirectory = Environment.CurrentDirectory;

static string XMLPath = @"\Packages\com.happyrobot33.vrcsdkdocumentation\Editor\Documentation";
static string XMLPath = "Packages/com.happyrobot33.vrcsdkdocumentation/Editor/Documentation";

static List<string> typeMembers = new List<string>();
static List<string> fieldMembers = new List<string>();
Expand All @@ -49,16 +49,17 @@ public static void Main(string[] args)
//see if the packages folder exists
if(!Directory.Exists(Path.Combine(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 53 in CodeCoverage/Program.cs

View workflow job for this annotation

GitHub Actions / build-listing

Dereference of a possibly null reference.

Check warning on line 53 in CodeCoverage/Program.cs

View workflow job for this annotation

GitHub Actions / build-listing

Dereference of a possibly null reference.

Check warning on line 53 in CodeCoverage/Program.cs

View workflow job for this annotation

GitHub Actions / build-listing

Dereference of a possibly null reference.

Check warning on line 53 in CodeCoverage/Program.cs

View workflow job for this annotation

GitHub Actions / build-listing

Dereference of a possibly null reference.
}
Console.WriteLine("Working Directory: " + workingDirectory);
//list everything in this directory
string[] directories = Directory.GetDirectories(workingDirectory);
foreach (string directory in directories)
{
Console.WriteLine("Directory: " + directory);
}

XMLPath = Path.Combine(workingDirectory, XMLPath);

//populate the namespace blacklist
Expand Down

0 comments on commit a728cf1

Please sign in to comment.