Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
V2023.10.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
nlogozzo committed Oct 11, 2023
1 parent ead7a14 commit bee63cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Nickvision.Aura/DependencyLocator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ static DependencyLocator()
/// <returns>The path of the dependency if found, else null</returns>
public static string? Find(string dependency)
{
dependency = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? $"{dependency}.exe" : dependency;
if (_locations.ContainsKey(dependency) && !string.IsNullOrEmpty(_locations[dependency]) && File.Exists(_locations[dependency]))
{
return _locations[dependency];
}
_locations[dependency] = null;
dependency = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? $"{dependency}.exe" : dependency;
var assemblyPath = Path.GetFullPath(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!);
if (File.Exists($"{assemblyPath}{Path.DirectorySeparatorChar}{dependency}"))
{
Expand Down
2 changes: 1 addition & 1 deletion Nickvision.Aura/Nickvision.Aura.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PackageId>Nickvision.Aura</PackageId>
<Version>2023.10.1.2</Version>
<Version>2023.10.1.3</Version>
<Company>Nickvision</Company>
<Authors>Nickvision</Authors>
<Description>A cross-platform base for Nickvision applications</Description>
Expand Down

0 comments on commit bee63cb

Please sign in to comment.