diff --git a/src/EFCore.Tools/EFCore.Tools.csproj b/src/EFCore.Tools/EFCore.Tools.csproj index 618412caf32..df0c078cd0e 100644 --- a/src/EFCore.Tools/EFCore.Tools.csproj +++ b/src/EFCore.Tools/EFCore.Tools.csproj @@ -3,7 +3,7 @@ - netcoreapp2.0 + net6.0 Microsoft.EntityFrameworkCore.Tools $(MSBuildThisFileDirectory)$(MSBuildProjectName).nuspec true diff --git a/src/EFCore.Tools/EFCore.Tools.nuspec b/src/EFCore.Tools/EFCore.Tools.nuspec index ebddc963d25..e180d2430b3 100644 --- a/src/EFCore.Tools/EFCore.Tools.nuspec +++ b/src/EFCore.Tools/EFCore.Tools.nuspec @@ -19,8 +19,8 @@ - - - + + + \ No newline at end of file diff --git a/src/EFCore.Tools/tools/EntityFrameworkCore.psm1 b/src/EFCore.Tools/tools/EntityFrameworkCore.psm1 index 3ba5bfa9043..52cd11698b0 100644 --- a/src/EFCore.Tools/tools/EntityFrameworkCore.psm1 +++ b/src/EFCore.Tools/tools/EntityFrameworkCore.psm1 @@ -1249,7 +1249,7 @@ function EF($project, $startupProject, $params, $applicationArgs, [switch] $skip $projectAssetsFile = GetCpsProperty $startupProject 'ProjectAssetsFile' $runtimeConfig = Join-Path $targetDir ($startupTargetName + '.runtimeconfig.json') $runtimeFrameworkVersion = GetCpsProperty $startupProject 'RuntimeFrameworkVersion' - $efPath = Join-Path $PSScriptRoot 'netcoreapp2.0\any\ef.dll' + $efPath = Join-Path $PSScriptRoot 'net6.0\any\ef.dll' $dotnetParams = 'exec', '--depsfile', $depsFile diff --git a/src/dotnet-ef/RootCommand.cs b/src/dotnet-ef/RootCommand.cs index 5a39820f31f..fd947ee5fcc 100644 --- a/src/dotnet-ef/RootCommand.cs +++ b/src/dotnet-ef/RootCommand.cs @@ -157,7 +157,7 @@ protected override int Execute(string[] _) args.Add(startupProject.RuntimeFrameworkVersion); } - args.Add(Path.Combine(toolsPath, "netcoreapp2.0", "any", "ef.dll")); + args.Add(Path.Combine(toolsPath, "net6.0", "any", "ef.dll")); } else if (targetFramework.Identifier == ".NETStandard") { diff --git a/src/dotnet-ef/dotnet-ef.csproj b/src/dotnet-ef/dotnet-ef.csproj index 676a63f5bd9..b12aff354d1 100644 --- a/src/dotnet-ef/dotnet-ef.csproj +++ b/src/dotnet-ef/dotnet-ef.csproj @@ -12,7 +12,7 @@ dotnet ef dbcontext scaffold dotnet ef database drop dotnet ef database update - netcoreapp3.1 + net6.0 Exe true win-x64;win-x86 @@ -85,9 +85,9 @@ dotnet ef database update - - - + + + diff --git a/src/dotnet-ef/dotnet-ef.nuspec b/src/dotnet-ef/dotnet-ef.nuspec index 5eea51128b0..4a3f750393e 100644 --- a/src/dotnet-ef/dotnet-ef.nuspec +++ b/src/dotnet-ef/dotnet-ef.nuspec @@ -11,9 +11,9 @@ $CommonFileElements$ - - - + + + diff --git a/src/ef/AppDomainOperationExecutor.cs b/src/ef/AppDomainOperationExecutor.cs index 6c4085a9983..2af031e2bdf 100644 --- a/src/ef/AppDomainOperationExecutor.cs +++ b/src/ef/AppDomainOperationExecutor.cs @@ -101,7 +101,7 @@ public override void Dispose() } } } -#elif NETCOREAPP2_0 +#elif NET6_0 #else #error target frameworks need to be updated. #endif diff --git a/src/ef/Commands/ProjectCommandBase.cs b/src/ef/Commands/ProjectCommandBase.cs index caab03930ce..5f0ac90d998 100644 --- a/src/ef/Commands/ProjectCommandBase.cs +++ b/src/ef/Commands/ProjectCommandBase.cs @@ -106,7 +106,7 @@ protected IOperationExecutor CreateExecutor(string[] remainingArguments) } } } -#elif !NETCOREAPP2_0 +#elif !NET6_0 #error target frameworks need to be updated. #endif return new ReflectionOperationExecutor( diff --git a/src/ef/ef.csproj b/src/ef/ef.csproj index 77a7d8d87fe..60f842fcacc 100644 --- a/src/ef/ef.csproj +++ b/src/ef/ef.csproj @@ -1,13 +1,15 @@  - netcoreapp2.0;net461 + net6.0;net461 Entity Framework Core Command-line Tools Exe false Microsoft.EntityFrameworkCore.Tools False $(MSBuildThisFileDirectory)..\..\rulesets\EFCore.noxmldocs.ruleset + + annotations