From 1e1f63f446078089b82b7e03dfdb3fe3ce1e1c7b Mon Sep 17 00:00:00 2001 From: Pranav K Date: Mon, 16 Nov 2020 17:36:10 -0800 Subject: [PATCH] Include .Views.dll from single file in .NET Core 3.1 apps For 5.0, we made a change to exclude .Views.dll from the single file bundle as a reaction to changes in bundling. However the SDK change also applied to .NET 3.1 apps. This change limits the exclusion to 5.0 and newer apps. Fixes https://github.com/dotnet/aspnetcore/issues/27831 --- .../build/netstandard2.0/Sdk.Razor.CurrentVersion.targets | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Sdk.Razor.CurrentVersion.targets b/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Sdk.Razor.CurrentVersion.targets index fbb16130b48d..570f0bc582c5 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Sdk.Razor.CurrentVersion.targets +++ b/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Sdk.Razor.CurrentVersion.targets @@ -724,12 +724,13 @@ Copyright (c) .NET Foundation. All rights reserved. %(Filename)%(Extension) PreserveNewest - true + + true %(Filename)%(Extension) PreserveNewest - true + true