PathHelper
Last updated
Was this helpful?
Last updated
Was this helpful?
PathHelper
class provides methods for combine and format ContentDirectory
paths.
Configure PathOptions
in composition root of your application and then use and methods.
PathOptions
properties:
Template
Func<ContentDirectory, string>
Determines templates for content directories.
Directories
Dictionary<ContentDirectory, string>
Determines absolute paths for content directories.
Configure PathOptions
in Program.cs
file of ASP.NET application:
After PathOptions
you can simply combine ContentDirectory
absolute path and relative path into a common path.
After PathOptions
you can simply replace content directory templates from path to content directory absolute paths.