Skip to content

Commit 408d166

Browse files
committed
Linux/OSX compatibility improved
1 parent 6fe910a commit 408d166

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Core.Common.Standard/KY.Core.Common.Standard.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<RootNamespace>KY.Core</RootNamespace>
66
<AssemblyName>KY.Core.Common</AssemblyName>
7-
<Version>4.16.1</Version>
7+
<Version>4.16.2</Version>
88
<Authors>KY-Programming</Authors>
99
<Company>KY-Programmingp</Company>
1010
<Product>KY.Core</Product>

Core.Common.Standard/Nuget/NugetAssemblyLocator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public Assembly Locate(string search, Version defaultVersion = null, bool loadDe
6666
}
6767
return assembly;
6868
}
69-
if (info.Path != null && info.Path.Contains(":"))
69+
if (info.Path != null && (info.Path.Contains(":") || FileSystem.FileExists(info.Path)))
7070
{
7171
Logger.Trace($"Try to load assembly from path {info}...");
7272
return this.TryFind(info, info.Path);

Core.Common.Standard/Nuget/NugetPackageTypeLoader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static Type Get(string assemblyName, string nameSpace, string typeName, V
2222
string name = $"{nameSpace}.{typeName}";
2323
if (string.IsNullOrEmpty(assemblyName))
2424
{
25-
return AppDomain.CurrentDomain.GetAssemblies().Select(x => x.GetType(name)).First(x => x != null);
25+
return AppDomain.CurrentDomain.GetAssemblies().Select(x => x.GetType(name)).FirstOrDefault(x => x != null);
2626
}
2727
NugetAssemblyLocator locator = NugetPackageDependencyLoader.CreateLocator();
2828
locator.Locations.InsertRange(0, locations);

0 commit comments

Comments
 (0)