@@ -210,19 +210,15 @@ private void ResolveConflicts()
210210 /// Store that a particular reference file is used.
211211 /// </summary>
212212 /// <param name="reference">The filename of the reference.</param>
213- private void UseReference ( string reference )
214- {
213+ private void UseReference ( string reference ) =>
215214 usedReferences [ reference ] = true ;
216- }
217215
218216 /// <summary>
219217 /// Store that a particular source file is used (by a project file).
220218 /// </summary>
221219 /// <param name="sourceFile">The source file.</param>
222- private void UseSource ( FileInfo sourceFile )
223- {
220+ private void UseSource ( FileInfo sourceFile ) =>
224221 sources [ sourceFile . FullName ] = sourceFile . Exists ;
225- }
226222
227223 /// <summary>
228224 /// The list of resolved reference files.
@@ -256,10 +252,8 @@ private void UseSource(FileInfo sourceFile)
256252 /// </summary>
257253 /// <param name="id">The assembly ID.</param>
258254 /// <param name="projectFile">The project file making the reference.</param>
259- private void UnresolvedReference ( string id , string projectFile )
260- {
255+ private void UnresolvedReference ( string id , string projectFile ) =>
261256 unresolvedReferences [ id ] = projectFile ;
262- }
263257
264258 private readonly TemporaryDirectory packageDirectory ;
265259
@@ -318,10 +312,8 @@ private void AnalyseProject(FileInfo project)
318312
319313 }
320314
321- private bool Restore ( string target , string ? pathToNugetConfig = null )
322- {
323- return dotnet . RestoreToDirectory ( target , packageDirectory . DirInfo . FullName , pathToNugetConfig ) ;
324- }
315+ private bool Restore ( string target , string ? pathToNugetConfig = null ) =>
316+ dotnet . RestoreToDirectory ( target , packageDirectory . DirInfo . FullName , pathToNugetConfig ) ;
325317
326318 private void Restore ( IEnumerable < string > targets , string ? pathToNugetConfig = null )
327319 {
@@ -434,12 +426,17 @@ private void AnalyseSolutions(IEnumerable<string> solutions)
434426 } ) ;
435427 }
436428
437- public void Dispose ( )
438- {
429+ public void Dispose ( ) =>
439430 packageDirectory ? . Dispose ( ) ;
440- }
441431
442432 [ GeneratedRegex ( "<PackageReference .*Include=\" (.*?)\" .*/>" , RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . Singleline ) ]
443433 private static partial Regex PackageReference ( ) ;
434+
435+ [ GeneratedRegex ( "<FrameworkReference .*Include=\" (.*?)\" .*/>" , RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . Singleline ) ]
436+ private static partial Regex FrameworkReference ( ) ;
437+
438+ [ GeneratedRegex ( "<Project .*Sdk=\" (.*?)\" .*/>" , RegexOptions . IgnoreCase | RegexOptions . Compiled | RegexOptions . Singleline ) ]
439+ private static partial Regex ProjectSdk ( ) ;
440+
444441 }
445442}
0 commit comments