From b5554a8038cb9a5e8a7e60503cdda4e1f8588a49 Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Sat, 13 Jan 2018 22:07:21 -0800 Subject: [PATCH] Make Razor SDK support refs and views on publish These are default behaviors for precompilation. --- .../Microsoft.AspNetCore.Razor.Design.targets | 44 +++++++++++++++++-- .../PublishIntegrationTest.cs | 29 ++++++++++++ 2 files changed, 69 insertions(+), 4 deletions(-) diff --git a/src/Microsoft.AspNetCore.Razor.Design/build/netstandard2.0/Microsoft.AspNetCore.Razor.Design.targets b/src/Microsoft.AspNetCore.Razor.Design/build/netstandard2.0/Microsoft.AspNetCore.Razor.Design.targets index 4c5dc8654e..d16108b37d 100644 --- a/src/Microsoft.AspNetCore.Razor.Design/build/netstandard2.0/Microsoft.AspNetCore.Razor.Design.targets +++ b/src/Microsoft.AspNetCore.Razor.Design/build/netstandard2.0/Microsoft.AspNetCore.Razor.Design.targets @@ -31,6 +31,22 @@ $(TargetName).PrecompiledViews + + + false + + + false @@ -314,14 +330,16 @@ + AfterTargets="ComputeRefAssembliesToPublish" + Condition="'@(RazorGenerate)'!='' and ('$(RazorCompileOnBuild)'=='true' or '$(RazorCompileOnPublish)'=='true')"> - + + @(RazorIntermediateAssembly->'%(Filename)%(Extension)') @@ -330,6 +348,24 @@ + + + + + + + + + +