Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using Microsoft.Extensions.Logging;
Comment thread
Happypig375 marked this conversation as resolved.
Outdated
using Microsoft.TemplateEngine.Abstractions;
using Microsoft.TemplateEngine.Abstractions.Installer;
Expand Down Expand Up @@ -260,7 +261,7 @@ private async Task<UpdateResult> UpdateAsync(List<TemplatePackageData> packages,
var packages = await GetAllTemplatePackagesAsync(cancellationToken).ConfigureAwait(false);

//check if the package with same identifier is already installed
if (packages.OfType<IManagedTemplatePackage>().FirstOrDefault(s => s.Identifier == identifier && s.Installer == installer) is IManagedTemplatePackage packageToBeUpdated)
if (packages.OfType<IManagedTemplatePackage>().FirstOrDefault(s => string.Equals(s.Identifier, identifier, StringComparison.OrdinalIgnoreCase) && s.Installer == installer) is IManagedTemplatePackage packageToBeUpdated)
{
//if same version is already installed - return
if (!forceUpdate && packageToBeUpdated.Version == version)
Expand Down
Loading