mirror of
https://github.com/Ellpeck/Contentless.git
synced 2024-11-27 09:18:35 +01:00
Fix First call.
This commit is contained in:
parent
a8ed920103
commit
0c42ff4409
1 changed files with 3 additions and 1 deletions
|
@ -214,7 +214,9 @@ public static class Program {
|
|||
foreach (var property in projectRootElement.AllChildren.Where(x => x.ElementName == "PackageReference").Select(x => x as ProjectItemElement))
|
||||
{
|
||||
var libraryName = property.Include;
|
||||
var version = (property.Children.First() as ProjectMetadataElement).Value;
|
||||
if (property.Children.FirstOrDefault(x => x.ElementName == "Version") is not ProjectMetadataElement versionElement)
|
||||
continue;
|
||||
var version = versionElement.Value;
|
||||
if (referencesVersions.Keys.Contains(libraryName))
|
||||
{
|
||||
referencesVersions[libraryName] = version;
|
||||
|
|
Loading…
Reference in a new issue