From 3143d9550014006080bb0def5b5c96608b025a13 Mon Sep 17 00:00:00 2001 From: Martin Costello Date: Tue, 6 Apr 2021 19:19:32 +0100 Subject: [PATCH] [MVC] Fix MSB4186 error (#31066) Fix MSB4186 error if a project references Microsoft.AspNetCore.Mvc.Testing that is not itself an ASP.NET project, such as a helper library in a test suite. --- .../Mvc.Testing/src/Microsoft.AspNetCore.Mvc.Testing.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mvc/Mvc.Testing/src/Microsoft.AspNetCore.Mvc.Testing.targets b/src/Mvc/Mvc.Testing/src/Microsoft.AspNetCore.Mvc.Testing.targets index e9f795b0241e..b999ce824447 100644 --- a/src/Mvc/Mvc.Testing/src/Microsoft.AspNetCore.Mvc.Testing.targets +++ b/src/Mvc/Mvc.Testing/src/Microsoft.AspNetCore.Mvc.Testing.targets @@ -29,7 +29,7 @@ - + <_ManifestProjects Include="%(_ContentRootProjectReferences.FusionName)"> $([System.IO.Path]::GetDirectoryName(%(_ContentRootProjectReferences.MSBuildSourceProjectFile)))