diff --git a/src/EFCore.Tools/EFCore.Tools.nuspec b/src/EFCore.Tools/EFCore.Tools.nuspec index f18c10abf7f..2b4c69d1cb2 100644 --- a/src/EFCore.Tools/EFCore.Tools.nuspec +++ b/src/EFCore.Tools/EFCore.Tools.nuspec @@ -19,8 +19,10 @@ + + - \ No newline at end of file + diff --git a/src/EFCore.Tools/tools/EntityFrameworkCore.psm1 b/src/EFCore.Tools/tools/EntityFrameworkCore.psm1 index 80bb7058637..e2bfb63248d 100644 --- a/src/EFCore.Tools/tools/EntityFrameworkCore.psm1 +++ b/src/EFCore.Tools/tools/EntityFrameworkCore.psm1 @@ -847,6 +847,10 @@ function EF($project, $startupProject, $params, [switch] $skipBuild) { $exePath = Join-Path $PSScriptRoot 'net461\win-x86\ef.exe' } + elseif ($platformTarget -eq 'ARM64') + { + $exePath = Join-Path $PSScriptRoot 'net461\win-arm64\ef.exe' + } elseif ($platformTarget -in 'AnyCPU', 'x64') { $exePath = Join-Path $PSScriptRoot 'net461\any\ef.exe' diff --git a/src/dotnet-ef/RootCommand.cs b/src/dotnet-ef/RootCommand.cs index 61959d89319..21d82d694c0 100644 --- a/src/dotnet-ef/RootCommand.cs +++ b/src/dotnet-ef/RootCommand.cs @@ -108,9 +108,12 @@ protected override int Execute() executable = Path.Combine( toolsPath, "net461", - startupProject.PlatformTarget == "x86" - ? "win-x86" - : "any", + startupProject.PlatformTarget switch + { + "x86" => "win-x86", + "ARM64" => "win-arm64", + _ => "any" + }, "ef.exe"); } else if (targetFramework.Identifier == ".NETCoreApp") diff --git a/src/dotnet-ef/dotnet-ef.csproj b/src/dotnet-ef/dotnet-ef.csproj index 36fb394ad56..6b7ef68ba1e 100644 --- a/src/dotnet-ef/dotnet-ef.csproj +++ b/src/dotnet-ef/dotnet-ef.csproj @@ -15,7 +15,7 @@ dotnet ef database update $(DefaultNetCoreTargetFramework) Exe true - win-x64;win-x86 + win-x64;win-x86;win-arm64 $(OutDir) Microsoft.EntityFrameworkCore.Tools @@ -96,6 +96,8 @@ dotnet ef database update + + diff --git a/src/dotnet-ef/dotnet-ef.nuspec b/src/dotnet-ef/dotnet-ef.nuspec index 5eea51128b0..2ceff381f6f 100644 --- a/src/dotnet-ef/dotnet-ef.nuspec +++ b/src/dotnet-ef/dotnet-ef.nuspec @@ -18,5 +18,7 @@ + + diff --git a/src/ef/ef.csproj b/src/ef/ef.csproj index 26ebe4e7438..8ad9e3ae3b0 100644 --- a/src/ef/ef.csproj +++ b/src/ef/ef.csproj @@ -47,8 +47,9 @@ - + +