PathHelper
PathHelper
class provides methods for combine and format ContentDirectory
paths.
Configure()
Configure PathOptions
in composition root of your application and then use Format() and Combine() methods.
PathOptions
properties:
Configure PathOptions
in Program.cs
file of ASP.NET application:
Combine()
After configuring PathOptions
you can simply combine ContentDirectory
absolute path and relative path into a common path.
Format()
After configuring PathOptions
you can simply replace content directory templates from path to content directory absolute paths.
Last updated