WebHostBuilderExtensions.UseSolutionRelativeContentRoot Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
UseSolutionRelativeContentRoot(IWebHostBuilder, String, String) |
Sets the content root of relative to the |
UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String) |
Sets the content root of relative to the |
UseSolutionRelativeContentRoot(IWebHostBuilder, String, String)
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
Sets the content root of relative to the solutionRelativePath
.
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseSolutionRelativeContentRoot (this Microsoft.AspNetCore.Hosting.IWebHostBuilder builder, string solutionRelativePath, string solutionName = "*.sln");
static member UseSolutionRelativeContentRoot : Microsoft.AspNetCore.Hosting.IWebHostBuilder * string * string -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseSolutionRelativeContentRoot (builder As IWebHostBuilder, solutionRelativePath As String, Optional solutionName As String = "*.sln") As IWebHostBuilder
Parameters
- builder
- IWebHostBuilder
The IWebHostBuilder.
- solutionRelativePath
- String
The directory of the solution file.
- solutionName
- String
The name of the solution file to make the content root relative to.
Returns
The IWebHostBuilder.
Applies to
UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String)
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
Sets the content root of relative to the solutionRelativePath
.
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseSolutionRelativeContentRoot (this Microsoft.AspNetCore.Hosting.IWebHostBuilder builder, string solutionRelativePath, string applicationBasePath, string solutionName = "*.sln");
static member UseSolutionRelativeContentRoot : Microsoft.AspNetCore.Hosting.IWebHostBuilder * string * string * string -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseSolutionRelativeContentRoot (builder As IWebHostBuilder, solutionRelativePath As String, applicationBasePath As String, Optional solutionName As String = "*.sln") As IWebHostBuilder
Parameters
- builder
- IWebHostBuilder
The IWebHostBuilder.
- solutionRelativePath
- String
The directory of the solution file.
- applicationBasePath
- String
The root of the app's directory.
- solutionName
- String
The name of the solution file to make the content root relative to.
Returns
The IWebHostBuilder.