WebApplicationFactoryContentRootAttribute.ContentRootPath Property

Definition

Gets the content root path for a given project. This content root can be relative or absolute. If it is a relative path, it will be combined with BaseDirectory.

C#
public string ContentRootPath { get; }

Property Value

Applies to

Product Versions
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0