From 1f39c1b8dfcdd8d8c690b7f684be8d292411964d Mon Sep 17 00:00:00 2001 From: adamjstone <8525409+adamjstone@users.noreply.github.com> Date: Sun, 26 Jul 2020 16:11:25 -0500 Subject: [PATCH] Fix a CLI defect. --- cicd/modules/BuildAndDeployment.psm1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cicd/modules/BuildAndDeployment.psm1 b/cicd/modules/BuildAndDeployment.psm1 index b8f0465f..948b0e42 100644 --- a/cicd/modules/BuildAndDeployment.psm1 +++ b/cicd/modules/BuildAndDeployment.psm1 @@ -117,7 +117,7 @@ Function Build $BuildVersionWithoutMetadata = GetBuildVersion; ComposeStart "Building $FilePathForSolutionFile using $SolutionConfiguration configuration."; ComposeNormal "Build version: $BuildVersionWithoutMetadata"; - ExecuteProcess -Path "$CommandNameForDotNetCli" -Arguments "build $FilePathForSolutionFile --configuration $SolutionConfiguration --nologo --no-restore --verbosity minimal /p:BuildVersion=$BuildVersionWithoutMetadata"; + ExecuteProcess -Path "$CommandNameForDotNetCli" -Arguments "build $FilePathForSolutionFile --configuration $SolutionConfiguration --no-restore --verbosity minimal /p:BuildVersion=$BuildVersionWithoutMetadata"; $BuildArtifactsDirectoryPath = Join-Path -Path "$DirectoryPathForArtifacts" -ChildPath "$SolutionConfiguration"; If (-not (Test-Path "$BuildArtifactsDirectoryPath")) @@ -219,7 +219,7 @@ Function Clean ) ComposeStart "Cleaning $FilePathForSolutionFile using $SolutionConfiguration configuration."; - ExecuteProcess -Path "$CommandNameForDotNetCli" -Arguments "clean $FilePathForSolutionFile --nologo --configuration $SolutionConfiguration --verbosity minimal"; + ExecuteProcess -Path "$CommandNameForDotNetCli" -Arguments "clean $FilePathForSolutionFile --configuration $SolutionConfiguration --verbosity minimal"; ComposeStart "Destroying build artifacts."; Get-ChildItem -Path "$DirectoryPathForSource" -Directory | ForEach-Object ` @@ -578,7 +578,7 @@ Function StartExampleWebApplication ComposeStart "Starting the example web application using $SolutionConfiguration configuration."; $ProjectFilePath = Join-Path -Path "$DirectoryPathForExample" -ChildPath "$ExampleWebApplicationNamespace\$ExampleWebApplicationNamespace.csproj"; ComposeNormal "Using project path: $ProjectFilePath"; - Start-Process -ArgumentList "run --nologo --project ""$ProjectFilePath"" --configuration $SolutionConfiguration" -FilePath "dotnet" -WindowStyle Minimized; + Start-Process -ArgumentList "run --project ""$ProjectFilePath"" --configuration $SolutionConfiguration" -FilePath "dotnet" -WindowStyle Minimized; ComposeFinish "Finished starting the application."; } @@ -627,7 +627,7 @@ Function Test { $TestDirectoryPath = $_.FullName; ComposeStart "Running tests for $TestDirectoryPath using $SolutionConfiguration configuration."; - OpenCover.Console.exe -excludebyattribute:*.Debugger* -log:Error -mergeoutput -oldstyle -output:"$FilePathForCoverageReport" -register:user -skipautoprops -target:"dotnet.exe" -targetargs:"test $TestDirectoryPath --configuration $SolutionConfiguration --no-build --nologo --no-restore --verbosity minimal"; + OpenCover.Console.exe -excludebyattribute:*.Debugger* -log:Error -mergeoutput -oldstyle -output:"$FilePathForCoverageReport" -register:user -skipautoprops -target:"dotnet.exe" -targetargs:"test $TestDirectoryPath --configuration $SolutionConfiguration --no-build --no-restore --verbosity minimal"; If ($LASTEXITCODE -ne 0) {