We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d66ac53 + be4a5a7 commit ba46f06Copy full SHA for ba46f06
src/Nerdbank.GitVersioning.Tasks/ContextAwareTask.cs
@@ -56,7 +56,7 @@ where outerProperty.SetMethod is not null && outerProperty.GetMethod is not null
56
// On .NET Framework (on Windows), we find native binaries by adding them to our PATH.
57
if (this.UnmanagedDllDirectory is not null)
58
{
59
- string pathEnvVar = Environment.GetEnvironmentVariable("PATH");
+ string pathEnvVar = Environment.GetEnvironmentVariable("PATH") ?? string.Empty;
60
string[] searchPaths = pathEnvVar.Split(Path.PathSeparator);
61
if (!searchPaths.Contains(this.UnmanagedDllDirectory, StringComparer.OrdinalIgnoreCase))
62
0 commit comments