diff options
Diffstat (limited to 'lib/compilers/dotnet.ts')
-rw-r--r-- | lib/compilers/dotnet.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/compilers/dotnet.ts b/lib/compilers/dotnet.ts index 192069267..ba461c932 100644 --- a/lib/compilers/dotnet.ts +++ b/lib/compilers/dotnet.ts @@ -123,7 +123,7 @@ class DotNetCompiler extends BaseCompiler { await fs.writeFile(projectFilePath, projectFileContent); } - setCompilerExecOptions(execOptions: ExecutionOptions, programDir: string) { + setCompilerExecOptions(execOptions: ExecutionOptions & {env: Record<string, string>}, programDir: string) { if (!execOptions) { execOptions = this.getDefaultExecOptions(); } @@ -166,7 +166,7 @@ class DotNetCompiler extends BaseCompiler { compiler: string, options: string[], inputFilename: string, - execOptions: ExecutionOptions, + execOptions: ExecutionOptions & {env: Record<string, string>}, ): Promise<CompilationResult> { const programDir = path.dirname(inputFilename); const nugetConfigPath = path.join(programDir, 'nuget.config'); @@ -198,7 +198,7 @@ class DotNetCompiler extends BaseCompiler { compiler: string, options: string[], inputFilename: string, - execOptions: ExecutionOptions, + execOptions: ExecutionOptions & {env: Record<string, string>}, ): Promise<CompilationResult> { const crossgen2Options: string[] = []; const configurableOptions = this.configurableOptions; |