From eda950317721b41e9e85b526122f4f36eee3c801 Mon Sep 17 00:00:00 2001 From: Ryan Brandenburg Date: Wed, 25 Sep 2019 14:17:10 -0700 Subject: [PATCH] RazorSDK doesn't overwrite ErrorLog \n\nCommit migrated from https://github.com/dotnet/aspnetcore-tooling/commit/aed7bc8ec6ca448178570fd145b50b7e4f7d79c3 --- .../Microsoft.NET.Sdk.Razor.Compilation.targets | 10 +++++++--- .../Microsoft.NET.Sdk.Razor.Component.targets | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Microsoft.NET.Sdk.Razor.Compilation.targets b/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Microsoft.NET.Sdk.Razor.Compilation.targets index c74674d432..0a2da72772 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Microsoft.NET.Sdk.Razor.Compilation.targets +++ b/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Microsoft.NET.Sdk.Razor.Compilation.targets @@ -35,7 +35,7 @@ Copyright (c) .NET Foundation. All rights reserved. Remove comment above ^ Set TargetType="$(OutputType)" to TargetType="Library" - Razor is always a .dll - + Remove Returns="@(CscCommandLineArgs)" Remove Remove Returns="@(CscCommandLineArgs)" @@ -60,7 +60,7 @@ Copyright (c) .NET Foundation. All rights reserved. Remove additional steps after calling CSC Add our FileWrites after the call to CSC - + Add Condition="'@(RazorCompile)'!=''" as a condition to the RazorCoreCompile target. --> $(MaxSupportedLangVersion) + + $(IntermediateOutputPath)$(RazorTargetName).Compilation.log + + true + + <$(IntermediateOutputPath)$(RazorTargetName).Component.log/RazorComponentErrorLog> + + -