mirror of
https://github.com/Ellpeck/Contentless.git
synced 2024-11-27 17:28:35 +01:00
Fix ups
This commit is contained in:
parent
e24d75d18a
commit
babf58f024
1 changed files with 2 additions and 4 deletions
|
@ -44,8 +44,8 @@ public static class Program {
|
|||
var excluded = config.ExcludedFiles.Select(Program.MakeFileRegex).ToArray();
|
||||
var overrides = Program.GetOverrides(config.Overrides).ToArray();
|
||||
|
||||
var referencesVersions = config.References.ToList().ToDictionary(x => x, x => (string)null, StringComparer.OrdinalIgnoreCase);
|
||||
if (config.References.Any())
|
||||
var referencesVersions = config.References.ToDictionary(x => x, x => (string)null, StringComparer.OrdinalIgnoreCase);
|
||||
if (config.References.Length > 0)
|
||||
{
|
||||
var csprojPath = args[1];
|
||||
Console.WriteLine($"Using project file {csprojPath}");
|
||||
|
@ -54,11 +54,9 @@ public static class Program {
|
|||
{
|
||||
var libraryName = property.Include;
|
||||
var version = (property.Children.First() as ProjectMetadataElement).Value;
|
||||
if (config.References.Any(x => x.Equals(libraryName, StringComparison.InvariantCultureIgnoreCase)))
|
||||
if (referencesVersions.Keys.Contains(libraryName))
|
||||
{
|
||||
referencesVersions[libraryName] = version;
|
||||
//syncingReferences.Add(libraryName, version);
|
||||
Console.WriteLine($"Found library version for sync: {libraryName}, {version}");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue