diff --git a/.github/workflows/ci-instrumentation-libraries.yml b/.github/workflows/ci-instrumentation-libraries.yml
index 546a0ae7447..35408d14250 100644
--- a/.github/workflows/ci-instrumentation-libraries.yml
+++ b/.github/workflows/ci-instrumentation-libraries.yml
@@ -23,9 +23,6 @@ jobs:
runs-on: ${{ matrix.os }}
- env:
- RunningDotNetPack: true
-
steps:
- uses: actions/checkout@v4
with:
@@ -35,10 +32,10 @@ jobs:
uses: actions/setup-dotnet@v3
- name: Install dependencies
- run: dotnet restore ./build/InstrumentationLibraries.proj
+ run: dotnet restore ./build/InstrumentationLibraries.proj -p:RunningDotNetPack=true
- name: Build
- run: dotnet build ./build/InstrumentationLibraries.proj --configuration Release --no-restore
+ run: dotnet build ./build/InstrumentationLibraries.proj --configuration Release --no-restore -p:RunningDotNetPack=true
- name: Test ${{ matrix.version }}
- run: dotnet test **/bin/Release/${{ matrix.version }}/OpenTelemetry.Instrumentation*.Tests.dll --logger:"console;verbosity=detailed"
+ run: dotnet test **/bin/Release/${{ matrix.version }}/OpenTelemetry.Instrumentation*.Tests.dll --framework ${{ matrix.version }} --configuration Release --no-restore --no-build --logger:"console;verbosity=detailed"
diff --git a/Directory.Packages.props b/Directory.Packages.props
index 23cee35001f..a2245fd9315 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -34,7 +34,10 @@
+
+
+