diff --git a/src/EFCore.Tools/tools/EntityFrameworkCore.psm1 b/src/EFCore.Tools/tools/EntityFrameworkCore.psm1
index 3cc442fce0a..8fa8084cd8a 100644
--- a/src/EFCore.Tools/tools/EntityFrameworkCore.psm1
+++ b/src/EFCore.Tools/tools/EntityFrameworkCore.psm1
@@ -65,7 +65,7 @@ function Add-Migration
# NB: -join is here to support ConvertFrom-Json on PowerShell 3.0
$result = (EF $dteProject $dteStartupProject $params) -join "`n" | ConvertFrom-Json
- Write-Output 'To undo this action, use Remove-Migration.'
+ Write-Host 'To undo this action, use Remove-Migration.'
$dteProject.ProjectItems.AddFromFile($result.migrationFile) | Out-Null
$DTE.ItemOperations.OpenFile($result.migrationFile) | Out-Null
@@ -818,7 +818,7 @@ function EF($project, $startupProject, $params, [switch] $skipBuild)
if (!$skipBuild)
{
- Write-Verbose 'Build started...'
+ Write-Host 'Build started...'
# TODO: Only build startup project. Don't use BuildProject, you can't specify platform
$solutionBuild = $DTE.Solution.SolutionBuild
@@ -828,7 +828,7 @@ function EF($project, $startupProject, $params, [switch] $skipBuild)
throw 'Build failed.'
}
- Write-Verbose 'Build succeeded.'
+ Write-Host 'Build succeeded.'
}
$startupProjectDir = GetProperty $startupProject.Properties 'FullPath'
diff --git a/src/dotnet-ef/Properties/Resources.Designer.cs b/src/dotnet-ef/Properties/Resources.Designer.cs
index 002b5a1ae73..a8aa1bedf04 100644
--- a/src/dotnet-ef/Properties/Resources.Designer.cs
+++ b/src/dotnet-ef/Properties/Resources.Designer.cs
@@ -400,6 +400,18 @@ public static string ContextDirDescription
public static string WorkingDirDescription
=> GetString("WorkingDirDescription");
+ ///
+ /// Build started...
+ ///
+ public static string BuildStarted
+ => GetString("BuildStarted");
+
+ ///
+ /// Build succeeded.
+ ///
+ public static string BuildSucceeded
+ => GetString("BuildSucceeded");
+
private static string GetString(string name, params string[] formatterNames)
{
var value = _resourceManager.GetString(name);
diff --git a/src/dotnet-ef/Properties/Resources.resx b/src/dotnet-ef/Properties/Resources.resx
index 13ca042aa3d..18dd5855492 100644
--- a/src/dotnet-ef/Properties/Resources.resx
+++ b/src/dotnet-ef/Properties/Resources.resx
@@ -300,4 +300,10 @@
The working directory of the tool invoking this command.
+
+ Build started...
+
+
+ Build succeeded.
+
\ No newline at end of file
diff --git a/src/dotnet-ef/RootCommand.cs b/src/dotnet-ef/RootCommand.cs
index 7e81f8bb19c..a18bb0ab158 100644
--- a/src/dotnet-ef/RootCommand.cs
+++ b/src/dotnet-ef/RootCommand.cs
@@ -79,7 +79,9 @@ protected override int Execute()
if (!_noBuild.HasValue())
{
+ Reporter.WriteInformation(Resources.BuildStarted);
startupProject.Build();
+ Reporter.WriteInformation(Resources.BuildSucceeded);
}
string executable;