C#: Use Add for environment variables

This commit is contained in:
Michael B. Gale
2024-12-02 13:40:37 +00:00
parent 84d3532a05
commit 4a7413cf11

View File

@@ -65,9 +65,9 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
logger.LogInfo($"Setting up Dependabot proxy at {this.Address}"); logger.LogInfo($"Setting up Dependabot proxy at {this.Address}");
startInfo.EnvironmentVariables["HTTP_PROXY"] = this.Address; startInfo.EnvironmentVariables.Add("HTTP_PROXY", this.Address);
startInfo.EnvironmentVariables["HTTPS_PROXY"] = this.Address; startInfo.EnvironmentVariables.Add("HTTPS_PROXY", this.Address);
startInfo.EnvironmentVariables["SSL_CERT_FILE"] = this.certFile?.FullName; startInfo.EnvironmentVariables.Add("SSL_CERT_FILE", this.certFile?.FullName);
} }
} }
} }