From 0476ae0d5594e4bdd56b513524bf398ab1c8fd48 Mon Sep 17 00:00:00 2001 From: KY Date: Sat, 27 Jun 2020 14:27:58 +0200 Subject: [PATCH] Assembly location with special characters fixed --- Core.Common.Standard/KY.Core.Common.Standard.csproj | 2 +- Core.Common.Standard/Nuget/NugetAssemblyLocator.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Core.Common.Standard/KY.Core.Common.Standard.csproj b/Core.Common.Standard/KY.Core.Common.Standard.csproj index 527834e..b7301f5 100644 --- a/Core.Common.Standard/KY.Core.Common.Standard.csproj +++ b/Core.Common.Standard/KY.Core.Common.Standard.csproj @@ -4,7 +4,7 @@ netstandard2.0 KY.Core KY.Core.Common - 4.11.0 + 4.11.1 KY-Programming KY-Programmingp KY.Core diff --git a/Core.Common.Standard/Nuget/NugetAssemblyLocator.cs b/Core.Common.Standard/Nuget/NugetAssemblyLocator.cs index ae97bb3..0a48ea1 100644 --- a/Core.Common.Standard/Nuget/NugetAssemblyLocator.cs +++ b/Core.Common.Standard/Nuget/NugetAssemblyLocator.cs @@ -152,7 +152,7 @@ private AssemblyInfo GetAssemblyInfoFromPath(string path, Version defaultVersion private AssemblyInfo GetAssemblyInfoFromLongName(string name) { - Regex regex = new Regex(@"(?[\w.]+),\sVersion=(?[\d.]+)(,\sCulture=(?[\w-]+),\sPublicKeyToken=(?\w+))?"); + Regex regex = new Regex(@"^(?.+),\sVersion=(?[\d.]+)(,\sCulture=(?[\w-]+),\sPublicKeyToken=(?\w+))?"); Match match = regex.Match(name); if (match.Success) {