File tree Expand file tree Collapse file tree 2 files changed +10
-19
lines changed
Datadog.Trace.ClrProfiler.IntegrationTests
Datadog.Trace.TestHelpers Expand file tree Collapse file tree 2 files changed +10
-19
lines changed Original file line number Diff line number Diff line change 7
7
</PropertyGroup >
8
8
9
9
<ItemGroup >
10
- <Content Include =" ..\..\integrations.json" Link =" integrations.json" >
11
- <CopyToOutputDirectory >Always</CopyToOutputDirectory >
12
- </Content >
13
- <Content Include =" ..\..\src\Datadog.Trace.ClrProfiler.Native\bin\**"
14
- CopyToOutputDirectory =" PreserveNewest"
15
- CopyToPublishDirectory =" PreserveNewest" />
10
+ <None Include =" ..\..\src\Datadog.Trace.ClrProfiler.Native\bin\$(Configuration)\$(Platform)\**"
11
+ CopyToOutputDirectory =" Always"
12
+ CopyToPublishDirectory =" Always"
13
+ Link =" profiler-lib\%(RecursiveDir)\%(Filename)%(Extension)" />
14
+ <Content Include =" ..\..\integrations.json"
15
+ CopyToOutputDirectory =" Always"
16
+ CopyToPublishDirectory =" Always"
17
+ Link =" profiler-lib\integrations.json" />
16
18
</ItemGroup >
17
19
18
20
<ItemGroup >
Original file line number Diff line number Diff line change @@ -239,9 +239,9 @@ public string GetProfilerPath()
239
239
240
240
if ( ! File . Exists ( _profilerFileLocation ) )
241
241
{
242
- // Let's try the project directory, as dotnet publish ignores the Copy attributes we currently use
242
+ // Let's try the executing directory, as dotnet publish ignores the Copy attributes we currently use
243
243
_profilerFileLocation = Path . Combine (
244
- GetProfilerProjectDirectory ( ) ,
244
+ ExecutingAssembly . Location ,
245
245
fileName ) ;
246
246
}
247
247
@@ -305,16 +305,5 @@ public string GetTargetFramework()
305
305
306
306
return $ "net{ _major } { _minor } { _patch ?? string . Empty } ";
307
307
}
308
-
309
- private static string GetProfilerProjectDirectory ( )
310
- {
311
- return Path . Combine (
312
- GetSolutionDirectory ( ) ,
313
- "src" ,
314
- "Datadog.Trace.ClrProfiler.Native" ,
315
- "bin" ,
316
- GetBuildConfiguration ( ) ,
317
- GetPlatform ( ) ) ;
318
- }
319
308
}
320
309
}
You can’t perform that action at this time.
0 commit comments