File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
using System . Diagnostics ;
2
+ using System . Runtime . InteropServices ;
2
3
using System . Text . Json ;
3
4
using System . Text . Json . Nodes ;
4
5
using Extensions ;
@@ -550,7 +551,7 @@ void RemoveFilesInNetFolderAvailableInAdditionalStore()
550
551
DotNetPublish ( s => s
551
552
. SetProject ( Solution . GetProjectByName ( Projects . AutoInstrumentationAdditionalDeps ) )
552
553
. SetConfiguration ( BuildConfiguration )
553
- . SetTargetPlatformAnyCPU ( )
554
+ . SetTargetPlatform ( Platform )
554
555
. SetProperty ( "TracerHomePath" , TracerHomeDirectory )
555
556
. EnableNoBuild ( )
556
557
. SetNoRestore ( NoRestore )
@@ -569,8 +570,9 @@ void RemoveFilesInNetFolderAvailableInAdditionalStore()
569
570
570
571
var folderRuntimeName = depsJson . GetFolderRuntimeName ( ) ;
571
572
var architectureStores = new List < AbsolutePath > ( )
572
- . AddIf ( StoreDirectory / "x64" / folderRuntimeName , true ) // All OS'es support x64 runtime
573
+ . AddIf ( StoreDirectory / "x64" / folderRuntimeName , RuntimeInformation . OSArchitecture == Architecture . X64 )
573
574
. AddIf ( StoreDirectory / "x86" / folderRuntimeName , IsWin ) // Only Windows supports x86 runtime
575
+ . AddIf ( StoreDirectory / "arm64" / folderRuntimeName , IsArm64 )
574
576
. AsReadOnly ( ) ;
575
577
576
578
depsJson . CopyNativeDependenciesToStore ( file , architectureStores ) ;
You can’t perform that action at this time.
0 commit comments