| File: CommandFactory\CommandResolution\NuGetUtils.cs | Web Access |
| Project: src\sdk\src\Cli\dotnet\dotnet.csproj (dotnet) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #nullable disable using NuGet.Packaging.Core; using NuGet.ProjectModel; namespace Microsoft.DotNet.Cli.CommandFactory.CommandResolution; internal static class NuGetUtils { public static bool IsPlaceholderFile(string path) { return string.Equals(Path.GetFileName(path), PackagingCoreConstants.EmptyFolder, StringComparison.Ordinal); } public static IEnumerable<LockFileItem> FilterPlaceHolderFiles(this IEnumerable<LockFileItem> files) { return files.Where(f => !IsPlaceholderFile(f.Path)); } }