From a27356078f6ddb715fd79474865b2dd8e5478468 Mon Sep 17 00:00:00 2001 From: Javier Calvarro Nelson Date: Tue, 9 Jun 2020 18:53:50 +0200 Subject: [PATCH] Disable Yarn warnings on CI builds for restore and Blazor WebAssembly projects (#22703) Disables warnings when running the Yarn task in CI environments. You'll still get the warnings on developer builds. --- eng/targets/CSharp.Common.props | 6 ++++++ eng/targets/Npm.Common.targets | 2 +- .../src/Microsoft.Authentication.WebAssembly.Msal.csproj | 8 ++++---- ...spNetCore.Components.WebAssembly.Authentication.csproj | 6 +++--- .../src/Microsoft.AspNetCore.NodeServices.csproj | 2 +- src/Shared/E2ETesting/E2ETesting.targets | 2 +- 6 files changed, 16 insertions(+), 10 deletions(-) diff --git a/eng/targets/CSharp.Common.props b/eng/targets/CSharp.Common.props index c63d4ac7c7..d650082102 100644 --- a/eng/targets/CSharp.Common.props +++ b/eng/targets/CSharp.Common.props @@ -56,4 +56,10 @@ + + + false + true + + diff --git a/eng/targets/Npm.Common.targets b/eng/targets/Npm.Common.targets index 7efc7ee841..f216bf5f9c 100644 --- a/eng/targets/Npm.Common.targets +++ b/eng/targets/Npm.Common.targets @@ -42,7 +42,7 @@ - + diff --git a/src/Components/WebAssembly/Authentication.Msal/src/Microsoft.Authentication.WebAssembly.Msal.csproj b/src/Components/WebAssembly/Authentication.Msal/src/Microsoft.Authentication.WebAssembly.Msal.csproj index e74311cb93..a4a0b1efe6 100644 --- a/src/Components/WebAssembly/Authentication.Msal/src/Microsoft.Authentication.WebAssembly.Msal.csproj +++ b/src/Components/WebAssembly/Authentication.Msal/src/Microsoft.Authentication.WebAssembly.Msal.csproj @@ -1,4 +1,4 @@ - + @@ -58,9 +58,9 @@ - - - + + + <_InteropBuildOutput Include="$(YarnWorkingDir)dist\$(Configuration)\**" Exclude="$(YarnWorkingDir)dist\.gitignore" /> diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj b/src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj index 8514f8792d..bbd49f3293 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj @@ -59,9 +59,9 @@ - - - + + + <_InteropBuildOutput Include="$(YarnWorkingDir)dist\$(Configuration)\**" Exclude="$(YarnWorkingDir)dist\.gitignore" /> diff --git a/src/Middleware/NodeServices/src/Microsoft.AspNetCore.NodeServices.csproj b/src/Middleware/NodeServices/src/Microsoft.AspNetCore.NodeServices.csproj index ccc02ac19c..1ac5e2df8a 100644 --- a/src/Middleware/NodeServices/src/Microsoft.AspNetCore.NodeServices.csproj +++ b/src/Middleware/NodeServices/src/Microsoft.AspNetCore.NodeServices.csproj @@ -21,7 +21,7 @@ - + diff --git a/src/Shared/E2ETesting/E2ETesting.targets b/src/Shared/E2ETesting/E2ETesting.targets index 53e3958734..d0fa6cb856 100644 --- a/src/Shared/E2ETesting/E2ETesting.targets +++ b/src/Shared/E2ETesting/E2ETesting.targets @@ -20,7 +20,7 @@ Importance="High" Text="Prerequisites were not enforced at build time. Running Yarn or the E2E tests might fail as a result. Check /src/Shared/E2ETesting/Readme.md for instructions." /> - +