We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c0fb14 commit 627ec69Copy full SHA for 627ec69
src/Mvc/Mvc.Testing/src/WebApplicationFactory.cs
@@ -249,7 +249,7 @@ private void SetContentRoot(IWebHostBuilder builder)
249
var fromFile = File.Exists("MvcTestingAppManifest.json");
250
var contentRoot = fromFile ? GetContentRootFromFile("MvcTestingAppManifest.json") : GetContentRootFromAssembly();
251
252
- if (contentRoot != null)
+ if (contentRoot != null && Directory.Exists(contentRoot))
253
{
254
builder.UseContentRoot(contentRoot);
255
}
0 commit comments