diff --git a/src/dotnet-svcutil/lib/src/CommandProcessorOptions.cs b/src/dotnet-svcutil/lib/src/CommandProcessorOptions.cs index 9a43bb790d3..41c8478c2f6 100644 --- a/src/dotnet-svcutil/lib/src/CommandProcessorOptions.cs +++ b/src/dotnet-svcutil/lib/src/CommandProcessorOptions.cs @@ -627,7 +627,7 @@ private async Task ProcessReferencesOptionAsync(CancellationToken cancellationTo { for (int idx = this.References.Count - 1; idx >= 0; idx--) { - var selected = references.Where(x => this.References[idx].Name == x.Name).FirstOrDefault(); + var selected = references.Where(x => string.Equals(this.References[idx].Name, x.Name, StringComparison.OrdinalIgnoreCase)).FirstOrDefault(); if (selected != null) { this.References[idx] = selected; diff --git a/src/dotnet-svcutil/lib/src/Shared/Options/UpdateOptions.cs b/src/dotnet-svcutil/lib/src/Shared/Options/UpdateOptions.cs index 017e879fc74..b1c5781515d 100644 --- a/src/dotnet-svcutil/lib/src/Shared/Options/UpdateOptions.cs +++ b/src/dotnet-svcutil/lib/src/Shared/Options/UpdateOptions.cs @@ -97,16 +97,6 @@ public void MakePathsRelativeTo(DirectoryInfo optionsFileDirectory) this.Inputs[idx] = new Uri(relPath, UriKind.Relative); } } - - //update referenced assembly path - for (int idx = 0; idx < this.References.Count; idx++) - { - var reference = this.References[idx]; - if (reference.DependencyType.Equals(ProjectDependencyType.Binary)) - { - this.References[idx] = ProjectDependency.FromAssembly(reference.AssemblyName); - } - } } public void ResolveFullPathsFrom(DirectoryInfo optionsFileDirectory) diff --git a/src/dotnet-svcutil/lib/src/Shared/ProjectDependency.cs b/src/dotnet-svcutil/lib/src/Shared/ProjectDependency.cs index 8e392855b6f..99664c2b5ed 100644 --- a/src/dotnet-svcutil/lib/src/Shared/ProjectDependency.cs +++ b/src/dotnet-svcutil/lib/src/Shared/ProjectDependency.cs @@ -153,7 +153,7 @@ private ProjectDependency(string filePath = "", string packageName = "", string this.ReferenceIdentity = this.DependencyType == ProjectDependencyType.Package || this.DependencyType == ProjectDependencyType.Tool || !string.IsNullOrWhiteSpace(packageName) ? string.Format(CultureInfo.InvariantCulture, "{0}, {{{1}, {2}}}", this.AssemblyName, this.Name, this.Version) : - this.FullPath; + this.AssemblyName; this.IsFramework = this.Name == NetCoreAppPackageID || this.Name == NetStandardLibraryPackageID; }