Skip to content

Commit

Permalink
Use AnyCPU target to support ARM64 and x64 CPUs (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoroz authored Mar 12, 2024
1 parent 790f5b7 commit 33456d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/NodeApi.DotNetHost/NodeApi.DotNetHost.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<RootNamespace>Microsoft.JavaScript.NodeApi.DotNetHost</RootNamespace>
<IsPackable>true</IsPackable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/NodeApi.Generator/NodeApi.Generator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@

<PropertyGroup>
<GetTargetPathDependsOn>$(GetTargetPathDependsOn);GetDependencyTargetPaths</GetTargetPathDependsOn>
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>

<Target Name="GetDependencyTargetPaths">
Expand Down
1 change: 1 addition & 0 deletions src/NodeApi/NodeApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<SelfContained>false</SelfContained>
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>

<PropertyGroup Condition=" '$(PublishAot)' == 'true' ">
Expand Down

0 comments on commit 33456d1

Please sign in to comment.