File tree 2 files changed +7
-4
lines changed
nuget/OpenTelemetry.AutoInstrumentation/contentFiles/any/any
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ IF EXIST %COR_PROFILER_PATH% (
10
10
set CORECLR_PROFILER_PATH = !COR_PROFILER_PATH!
11
11
) ELSE (
12
12
set " COR_PROFILER_PATH = "
13
- echo RuntimeIdentifier was not specified when building the project. Attempting to use the fallback location.
13
+
14
+ echo Unable to locate the native profiler inside current directory, possibly due to runtime identifier not being specified when building/publishing. ^
15
+ Attempting to use the native profiler from runtimes\win-x64\native and runtimes\win-x86\native subdirectories.
14
16
15
17
set COR_PROFILER_PATH_64 = %BASE_PATH% runtimes\win-x64\native\OpenTelemetry.AutoInstrumentation.Native.dll
16
18
set COR_PROFILER_PATH_32 = %BASE_PATH% runtimes\win-x86\native\OpenTelemetry.AutoInstrumentation.Native.dll
Original file line number Diff line number Diff line change 2
2
3
3
BASE_PATH=" $( cd " $( dirname " $0 " ) " && pwd) "
4
4
5
- CORECLR_PROFILER_PATH=" $( ls " ${BASE_PATH} " /OpenTelemetry.AutoInstrumentation.Native.* 2> /dev/null) "
5
+ CORECLR_PROFILER_PATH=" $( ls ${BASE_PATH} /OpenTelemetry.AutoInstrumentation.Native.* 2> /dev/null) "
6
6
7
7
status=$?
8
8
if [ $status -ne 0 ]; then
9
- echo " RuntimeIdentifier was not specified when building the project. Attempting to use the fallback location."
9
+ echo " Unable to locate the native profiler inside current directory, possibly due to runtime identifier not being specified when building/publishing.
10
+ Attempting to detect the runtime and use the native profiler from corresponding subdirectory of runtimes directory."
10
11
11
12
case " $( uname -s | tr ' [:upper:]' ' [:lower:]' ) " in
12
13
linux* )
@@ -45,7 +46,7 @@ if [ $status -ne 0 ]; then
45
46
exit 1
46
47
;;
47
48
esac
48
- CORECLR_PROFILER_PATH=" ${BASE_PATH} " /runtimes/" ${OS_TYPE} " - " ${ARCHITECTURE} " /native/OpenTelemetry.AutoInstrumentation.Native" ${FILE_EXTENSION} "
49
+ CORECLR_PROFILER_PATH=" ${BASE_PATH} /runtimes/${OS_TYPE} - ${ARCHITECTURE} /native/OpenTelemetry.AutoInstrumentation.Native${FILE_EXTENSION} "
49
50
if [ ! -f " ${CORECLR_PROFILER_PATH} " ]; then
50
51
echo " Unable to locate the native profiler." >&2
51
52
exit 1
You can’t perform that action at this time.
0 commit comments