|
1 | | -<Project> |
| 1 | +<Project> |
2 | 2 |
|
3 | 3 | <PropertyGroup> |
4 | 4 | <!-- If the RuntimeIdentifier is explicitly specified. Use the specified target platform. --> |
5 | 5 | <BenchmarkDotNetTargetPlatform>$(RuntimeIdentifier)</BenchmarkDotNetTargetPlatform> |
6 | 6 | </PropertyGroup> |
7 | | - |
| 7 | + |
8 | 8 | <PropertyGroup Condition="'$(BenchmarkDotNetTargetPlatform)' == ''"> |
9 | 9 | <!-- If RuntimeIdentifier is not specified Use current build platform --> |
10 | 10 | <!-- List of runtimes supported by Gee.External.Capstone: https://github.com/9ee1/Capstone.NET/tree/master/Gee.External.Capstone/runtimes --> |
|
18 | 18 | <BenchmarkDotNetTargetPlatform Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'Arm64'">$(BenchmarkDotNetTargetPlatform)-arm64</BenchmarkDotNetTargetPlatform> |
19 | 19 | </PropertyGroup> |
20 | 20 |
|
21 | | - <Target Name="FilterBenchmarkDotNetPackageAssets" AfterTargets="ResolvePackageAssets"> |
| 21 | + <Target Name="BdnFilterPackageAssets" AfterTargets="ResolvePackageAssets"> |
22 | 22 | <!-- Remove `runtimes/{RuntimeIdentifier}` files that is not matched to target platform. --> |
23 | 23 | <ItemGroup Condition="'$(BenchmarkDotNetTargetPlatform)' != '' AND $(BenchmarkDotNetTargetPlatform) != 'all'"> |
24 | 24 | <RuntimeTargetsCopyLocalItems Remove="@(RuntimeTargetsCopyLocalItems)" |
|
27 | 27 |
|
28 | 28 | <!-- Remove unnecessary satellite assemblies. --> |
29 | 29 | <ItemGroup> |
30 | | - <ResourceCopyLocalItems Remove="@(ResourceCopyLocalItems)" |
31 | | - Condition="'%(ResourceCopyLocalItems.NuGetPackageId)' == 'Microsoft.CodeAnalysis.Common' OR '%(ResourceCopyLocalItems.NuGetPackageId)' == 'Microsoft.CodeAnalysis.CSharp'"/> |
| 30 | + <ResourceCopyLocalItems |
| 31 | + Remove="@(ResourceCopyLocalItems)" |
| 32 | + Condition="'%(ResourceCopyLocalItems.NuGetPackageId)' == 'Microsoft.CodeAnalysis.Common' |
| 33 | + OR |
| 34 | + '%(ResourceCopyLocalItems.NuGetPackageId)' == 'Microsoft.CodeAnalysis.CSharp' |
| 35 | + OR |
| 36 | + '%(ResourceCopyLocalItems.NuGetPackageId)' == 'Microsoft.TestPlatform.AdapterUtilities' |
| 37 | + OR |
| 38 | + '%(ResourceCopyLocalItems.NuGetPackageId)' == 'Microsoft.TestPlatform.ObjectModel' |
| 39 | + OR |
| 40 | + '%(ResourceCopyLocalItems.NuGetPackageId)' == 'Microsoft.TestPlatform.TestHost' |
| 41 | + OR |
| 42 | + '%(ResourceCopyLocalItems.NuGetPackageId)' == 'Microsoft.TestPlatform.TranslationLayer' |
| 43 | + "/> |
32 | 44 | </ItemGroup> |
33 | 45 | </Target> |
| 46 | + |
34 | 47 | </Project> |
0 commit comments