From b4e8230310cbfca76f94ef4cefdf72c2bf25fb64 Mon Sep 17 00:00:00 2001 From: martincostello Date: Fri, 19 Mar 2021 18:38:06 +0000 Subject: [PATCH] Fix MSB4186 error 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)))