@@ -82,7 +82,7 @@ public async Task DoesNotInstrumentDotnetBuild()
82
82
83
83
using var agent = EnvironmentHelper . GetMockAgent ( useTelemetry : true ) ;
84
84
85
- var logDir = await RunDotnet ( "new console -n instrumentation_test -o . --no-restore" ) ;
85
+ var logDir = await RunDotnet ( "new console -n instrumentation_test -o . --no-restore -f net8.0 " ) ;
86
86
AssertNotInstrumented ( agent , logDir ) ;
87
87
88
88
logDir = await RunDotnet ( "restore" ) ;
@@ -114,7 +114,7 @@ public async Task DoesNotInstrumentExcludedNames(string excludedProcess)
114
114
115
115
using var agent = EnvironmentHelper . GetMockAgent ( useTelemetry : true ) ;
116
116
117
- var logDir = await RunDotnet ( $ "new console -n { excludedProcess } -o . --no-restore") ;
117
+ var logDir = await RunDotnet ( $ "new console -n { excludedProcess } -o . --no-restore -f net8.0 ") ;
118
118
AssertNotInstrumented ( agent , logDir ) ;
119
119
120
120
var programCs = GetProgramCSThatMakesSpans ( ) ;
@@ -152,7 +152,7 @@ public async Task DoesInstrumentAllowedProcesses(string allowedProcess)
152
152
153
153
using var agent = EnvironmentHelper . GetMockAgent ( useTelemetry : true ) ;
154
154
155
- var logDir = await RunDotnet ( $ "new console -n { allowedProcess } -o . --no-restore") ;
155
+ var logDir = await RunDotnet ( $ "new console -n { allowedProcess } -o . --no-restore -f net8.0 ") ;
156
156
AssertNotInstrumented ( agent , logDir ) ;
157
157
var programCs = GetProgramCSThatMakesSpans ( ) ;
158
158
@@ -186,7 +186,7 @@ public async Task InstrumentsDotNetTest()
186
186
187
187
using var agent = EnvironmentHelper . GetMockAgent ( useTelemetry : true ) ;
188
188
189
- var logDir = await RunDotnet ( "new xunit -n instrumentation_test -o . --no-restore" ) ;
189
+ var logDir = await RunDotnet ( "new xunit -n instrumentation_test -o . --no-restore -f net8.0 " ) ;
190
190
AssertNotInstrumented ( agent , logDir ) ;
191
191
192
192
// this _should_ be instrumented so we expect managed data.
0 commit comments