Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use a different way to get the full path
Browse files Browse the repository at this point in the history
vandonr committed Dec 13, 2024

Verified

This commit was signed with the committer’s verified signature.
vandonr Raphaël Vandon
1 parent c7c2156 commit 7729c07
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -77,7 +77,7 @@ private static Assembly ResolveAssembly(string name)

// WARNING: Logs must not be added _before_ we check for the above bail-out conditions
StartupLogger.Debug("Assembly Resolve event received for: {0}", name);
var path = new FileInfo(Path.Combine(ManagedProfilerDirectory, $"{assemblyName.Name}.dll")).FullName;
var path = Path.GetFullPath(Path.Combine(ManagedProfilerDirectory, $"{assemblyName.Name}.dll"));
StartupLogger.Debug("Looking for: {0}", path);

if (IsDatadogAssembly(path, out var cachedAssembly))
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ private static Assembly ResolveAssembly(string name)
}

// WARNING: Logs must not be added _before_ we check for the above bail-out conditions
var path = new FileInfo(string.IsNullOrEmpty(ManagedProfilerDirectory) ? $"{assemblyName.Name}.dll" : Path.Combine(ManagedProfilerDirectory, $"{assemblyName.Name}.dll")).FullName;
var path = Path.GetFullPath(string.IsNullOrEmpty(ManagedProfilerDirectory) ? $"{assemblyName.Name}.dll" : Path.Combine(ManagedProfilerDirectory, $"{assemblyName.Name}.dll"));
StartupLogger.Debug(" Looking for: '{0}'", path);

if (File.Exists(path))

0 comments on commit 7729c07

Please sign in to comment.