File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/SourceBuild/content/test/Microsoft.DotNet.SourceBuild.Tests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,11 +62,11 @@ private static void VerifyRuntimePacksForSelfContained(string projectPath)
62
62
63
63
string packagesDirectory = Path . Combine ( Environment . CurrentDirectory , "packages" ) ;
64
64
65
- IEnumerable < string > packages = restoredPackageFiles
65
+ IEnumerable < string > packages = restoredPackageFiles . GetValues < string > ( )
66
+ . Where ( file => file is not null )
66
67
. Select ( file =>
67
68
{
68
- string path = file . ToString ( ) ;
69
- path = path . Substring ( packagesDirectory . Length + 1 ) ; // trim the leading path up to the package name directory
69
+ string path = file . Substring ( packagesDirectory . Length + 1 ) ; // trim the leading path up to the package name directory
70
70
return path . Substring ( 0 , path . IndexOf ( '/' ) ) ; // trim the rest of the path
71
71
} )
72
72
. Except ( allowedPackages , StringComparer . OrdinalIgnoreCase ) ;
You can’t perform that action at this time.
0 commit comments