Example #1
0
 public Task <NuGetProject> GetNuGetProjectAsync(string nuGetProjectSafeName)
 {
     return(Task.FromResult(NuGetProjects.
                            Where(p => string.Equals(nuGetProjectSafeName, p.GetMetadata <string>(NuGetProjectMetadataKeys.Name), StringComparison.OrdinalIgnoreCase))
                            .FirstOrDefault()));
 }
Example #2
0
 public NuGetProject GetNuGetProject(string nuGetProjectSafeName)
 {
     return(NuGetProjects.
            Where(p => string.Equals(nuGetProjectSafeName, p.GetMetadata <string>(NuGetProjectMetadataKeys.Name), StringComparison.OrdinalIgnoreCase))
            .FirstOrDefault());
 }