From 7f36d6e5f0307a693ba7d36ab9c67a74ab53ef48 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Thu, 31 Oct 2019 12:31:50 -0700 Subject: [PATCH] Associate inputs and outputs for .Views dll with a set in FastUpToDate check (dotnet/aspnetcore-tooling#1277) Follow up to https://github.com/dotnet/project-system/issues/5596 FastUpToDateCheck now has a way to associate inputs and outputs using the Set attribute. This change prevents FastUpToDateCheck from rebuilding a project when a *.cshtml file is newer than the project's dll output. Fixes https://github.com/aspnet/AspNetCore/issues/13204\n\nCommit migrated from https://github.com/dotnet/aspnetcore-tooling/commit/2bf9c124908d9ecf5623819312a8a4ac2e96cf4c --- .../src/build/netstandard2.0/Sdk.Razor.CurrentVersion.targets | 4 ++-- 1 file changed, 2 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 6345c52e96..84d7bb730c 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 @@ -307,7 +307,7 @@ Copyright (c) .NET Foundation. All rights reserved. Add all cshtml files to UpToDateCheckInput - a collection of files used by FastUpToDateCheck to determine if any of the the project inputs have changed. --> - + + Condition="'$(RazorCompileOnBuild)'=='true' AND '@(Content->WithMetadataValue('Extension', '.cshtml'))' != ''" Set="RazorViews" />