Skip to content

Commit

Permalink
fix store output platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
RassK committed Feb 19, 2024
1 parent bf08ac9 commit 0c817c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build/Build.Steps.cs
@@ -1,4 +1,5 @@
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Text.Json;
using System.Text.Json.Nodes;
using Extensions;
Expand Down Expand Up @@ -550,7 +551,7 @@ void RemoveFilesInNetFolderAvailableInAdditionalStore()
DotNetPublish(s => s
.SetProject(Solution.GetProjectByName(Projects.AutoInstrumentationAdditionalDeps))
.SetConfiguration(BuildConfiguration)
.SetTargetPlatformAnyCPU()
.SetTargetPlatform(Platform)
.SetProperty("TracerHomePath", TracerHomeDirectory)
.EnableNoBuild()
.SetNoRestore(NoRestore)
Expand All @@ -569,8 +570,9 @@ void RemoveFilesInNetFolderAvailableInAdditionalStore()
var folderRuntimeName = depsJson.GetFolderRuntimeName();
var architectureStores = new List<AbsolutePath>()
.AddIf(StoreDirectory / "x64" / folderRuntimeName, true) // All OS'es support x64 runtime
.AddIf(StoreDirectory / "x64" / folderRuntimeName, RuntimeInformation.OSArchitecture == Architecture.X64)
.AddIf(StoreDirectory / "x86" / folderRuntimeName, IsWin) // Only Windows supports x86 runtime
.AddIf(StoreDirectory / "arm64" / folderRuntimeName, IsArm64)
.AsReadOnly();
depsJson.CopyNativeDependenciesToStore(file, architectureStores);
Expand Down

0 comments on commit 0c817c2

Please sign in to comment.