@@ -203,6 +203,8 @@ internal class TestDiagnosticWriter : IDiagnosticsWriter
203203 public IList < DiagnosticMessage > Diagnostics { get ; } = new List < DiagnosticMessage > ( ) ;
204204
205205 public void AddEntry ( DiagnosticMessage message ) => this . Diagnostics . Add ( message ) ;
206+
207+ public void Dispose ( ) { }
206208 }
207209
208210 /// <summary>
@@ -250,12 +252,7 @@ void EndCallback(int ret, string s, bool silent)
250252 EndCallbackIn . Add ( s ) ;
251253 }
252254
253- CppAutobuilder CreateAutoBuilder ( bool isWindows ,
254- string ? buildless = null , string ? solution = null , string ? buildCommand = null , string ? ignoreErrors = null ,
255- string ? msBuildArguments = null , string ? msBuildPlatform = null , string ? msBuildConfiguration = null , string ? msBuildTarget = null ,
256- string ? dotnetArguments = null , string ? dotnetVersion = null , string ? vsToolsVersion = null ,
257- string ? nugetRestore = null , string ? allSolutions = null ,
258- string cwd = @"C:\Project" )
255+ CppAutobuilder CreateAutoBuilder ( bool isWindows , string ? dotnetVersion = null , string cwd = @"C:\Project" )
259256 {
260257 string codeqlUpperLanguage = Language . Cpp . UpperCaseName ;
261258 Actions . GetEnvironmentVariable [ $ "CODEQL_AUTOBUILDER_{ codeqlUpperLanguage } _NO_INDEXING"] = "false" ;
@@ -265,22 +262,7 @@ CppAutobuilder CreateAutoBuilder(bool isWindows,
265262 Actions . GetEnvironmentVariable [ $ "CODEQL_EXTRACTOR_{ codeqlUpperLanguage } _DIAGNOSTIC_DIR"] = "" ;
266263 Actions . GetEnvironmentVariable [ "CODEQL_JAVA_HOME" ] = @"C:\codeql\tools\java" ;
267264 Actions . GetEnvironmentVariable [ "CODEQL_PLATFORM" ] = "win64" ;
268- Actions . GetEnvironmentVariable [ "SEMMLE_DIST" ] = @"C:\odasa" ;
269- Actions . GetEnvironmentVariable [ "SEMMLE_JAVA_HOME" ] = @"C:\odasa\tools\java" ;
270- Actions . GetEnvironmentVariable [ "SEMMLE_PLATFORM_TOOLS" ] = @"C:\odasa\tools" ;
271- Actions . GetEnvironmentVariable [ "LGTM_INDEX_VSTOOLS_VERSION" ] = vsToolsVersion ;
272- Actions . GetEnvironmentVariable [ "LGTM_INDEX_MSBUILD_ARGUMENTS" ] = msBuildArguments ;
273- Actions . GetEnvironmentVariable [ "LGTM_INDEX_MSBUILD_PLATFORM" ] = msBuildPlatform ;
274- Actions . GetEnvironmentVariable [ "LGTM_INDEX_MSBUILD_CONFIGURATION" ] = msBuildConfiguration ;
275- Actions . GetEnvironmentVariable [ "LGTM_INDEX_MSBUILD_TARGET" ] = msBuildTarget ;
276- Actions . GetEnvironmentVariable [ "LGTM_INDEX_DOTNET_ARGUMENTS" ] = dotnetArguments ;
277- Actions . GetEnvironmentVariable [ "LGTM_INDEX_DOTNET_VERSION" ] = dotnetVersion ;
278- Actions . GetEnvironmentVariable [ "LGTM_INDEX_BUILD_COMMAND" ] = buildCommand ;
279- Actions . GetEnvironmentVariable [ "LGTM_INDEX_SOLUTION" ] = solution ;
280- Actions . GetEnvironmentVariable [ "LGTM_INDEX_IGNORE_ERRORS" ] = ignoreErrors ;
281- Actions . GetEnvironmentVariable [ "LGTM_INDEX_BUILDLESS" ] = buildless ;
282- Actions . GetEnvironmentVariable [ "LGTM_INDEX_ALL_SOLUTIONS" ] = allSolutions ;
283- Actions . GetEnvironmentVariable [ "LGTM_INDEX_NUGET_RESTORE" ] = nugetRestore ;
265+ Actions . GetEnvironmentVariable [ "CODEQL_EXTRACTOR_CSHARP_OPTION_DOTNET_VERSION" ] = dotnetVersion ;
284266 Actions . GetEnvironmentVariable [ "ProgramFiles(x86)" ] = isWindows ? @"C:\Program Files (x86)" : null ;
285267 Actions . GetCurrentDirectory = cwd ;
286268 Actions . IsWindows = isWindows ;
0 commit comments