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>
+
+
-