@@ -170,12 +170,13 @@ private string GetAbsolutePath(string path, string baseDirectoryPath)
170170 /// current working directory.</param>
171171 /// <param name="progress">An optional <see cref="IProgress{T}"/> that will receive updates as the solution is opened.</param>
172172 /// <param name="cancellationToken">An optional <see cref="CancellationToken"/> to allow cancellation of this operation.</param>
173- // 3.6 BACKCOMPAT OVERLOAD -- DO NOT TOUCH
173+ #pragma warning disable RS0026 // Special case to avoid ILogger type getting loaded in downstream clients
174174 public Task < Solution > OpenSolutionAsync (
175+ #pragma warning restore RS0026
175176 string solutionFilePath ,
176- IProgress < ProjectLoadProgress > progress ,
177- CancellationToken cancellationToken )
178- => OpenSolutionAsync ( solutionFilePath , progress , msbuildLogger : null , cancellationToken ) ;
177+ IProgress < ProjectLoadProgress > progress = null ,
178+ CancellationToken cancellationToken = default )
179+ => OpenSolutionAsync ( solutionFilePath , msbuildLogger : null , progress , cancellationToken ) ;
179180
180181 /// <summary>
181182 /// Open a solution file and all referenced projects.
@@ -185,10 +186,12 @@ public Task<Solution> OpenSolutionAsync(
185186 /// <param name="progress">An optional <see cref="IProgress{T}"/> that will receive updates as the solution is opened.</param>
186187 /// <param name="msbuildLogger">An optional <see cref="ILogger"/> that will log msbuild results.</param>
187188 /// <param name="cancellationToken">An optional <see cref="CancellationToken"/> to allow cancellation of this operation.</param>
189+ #pragma warning disable RS0026 // Special case to avoid ILogger type getting loaded in downstream clients
188190 public async Task < Solution > OpenSolutionAsync (
191+ #pragma warning restore RS0026
189192 string solutionFilePath ,
193+ ILogger msbuildLogger ,
190194 IProgress < ProjectLoadProgress > progress = null ,
191- ILogger msbuildLogger = null ,
192195 CancellationToken cancellationToken = default )
193196 {
194197 if ( solutionFilePath == null )
@@ -215,12 +218,13 @@ public async Task<Solution> OpenSolutionAsync(
215218 /// current working directory.</param>
216219 /// <param name="progress">An optional <see cref="IProgress{T}"/> that will receive updates as the project is opened.</param>
217220 /// <param name="cancellationToken">An optional <see cref="CancellationToken"/> to allow cancellation of this operation.</param>
218- // 3.6 BACKCOMPAT OVERLOAD -- DO NOT TOUCH
221+ #pragma warning disable RS0026 // Special case to avoid ILogger type getting loaded in downstream clients
219222 public Task < Project > OpenProjectAsync (
223+ #pragma warning restore RS0026
220224 string projectFilePath ,
221- IProgress < ProjectLoadProgress > progress ,
222- CancellationToken cancellationToken )
223- => OpenProjectAsync ( projectFilePath , progress , msbuildLogger : null , cancellationToken ) ;
225+ IProgress < ProjectLoadProgress > progress = null ,
226+ CancellationToken cancellationToken = default )
227+ => OpenProjectAsync ( projectFilePath , msbuildLogger : null , progress , cancellationToken ) ;
224228
225229 /// <summary>
226230 /// Open a project file and all referenced projects.
@@ -230,10 +234,12 @@ public Task<Project> OpenProjectAsync(
230234 /// <param name="progress">An optional <see cref="IProgress{T}"/> that will receive updates as the project is opened.</param>
231235 /// <param name="msbuildLogger">An optional <see cref="ILogger"/> that will log msbuild results..</param>
232236 /// <param name="cancellationToken">An optional <see cref="CancellationToken"/> to allow cancellation of this operation.</param>
237+ #pragma warning disable RS0026 // Special case to avoid ILogger type getting loaded in downstream clients
233238 public async Task < Project > OpenProjectAsync (
239+ #pragma warning restore RS0026
234240 string projectFilePath ,
241+ ILogger msbuildLogger ,
235242 IProgress < ProjectLoadProgress > progress = null ,
236- ILogger msbuildLogger = null ,
237243 CancellationToken cancellationToken = default )
238244 {
239245 if ( projectFilePath == null )
0 commit comments