Share via


WebHostBuilderExtensions.UseSolutionRelativeContentRoot Method

Definition

Overloads

Name Description
UseSolutionRelativeContentRoot(IWebHostBuilder, String)

Sets the content root of relative to the solutionRelativePath.

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String)

Sets the content root of relative to the solutionRelativePath.

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, ReadOnlySpan<String>)

Sets the content root of relative to the solutionRelativePath.

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String)

Sets the content root of relative to the solutionRelativePath.

UseSolutionRelativeContentRoot(IWebHostBuilder, String)

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);
static member UseSolutionRelativeContentRoot : Microsoft.AspNetCore.Hosting.IWebHostBuilder * string -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseSolutionRelativeContentRoot (builder As IWebHostBuilder, solutionRelativePath As String) As IWebHostBuilder

Parameters

solutionRelativePath
String

The directory of the solution file.

Returns

The IWebHostBuilder.

Applies to

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
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);
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, solutionName As String) As IWebHostBuilder
<Extension()>
Public Function UseSolutionRelativeContentRoot (builder As IWebHostBuilder, solutionRelativePath As String, Optional solutionName As String = "*.sln") As IWebHostBuilder

Parameters

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, ReadOnlySpan<String>)

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, ReadOnlySpan<string> solutionNames = default);
static member UseSolutionRelativeContentRoot : Microsoft.AspNetCore.Hosting.IWebHostBuilder * string * string * ReadOnlySpan<string> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseSolutionRelativeContentRoot (builder As IWebHostBuilder, solutionRelativePath As String, applicationBasePath As String, Optional solutionNames As ReadOnlySpan(Of String) = Nothing) As IWebHostBuilder

Parameters

solutionRelativePath
String

The directory of the solution file.

applicationBasePath
String

The root of the app's directory.

solutionNames
ReadOnlySpan<String>

The names of the solution files to make the content root relative to. If empty, defaults to *.sln and *.slnx.

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
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);
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, solutionName As String) As IWebHostBuilder
<Extension()>
Public Function UseSolutionRelativeContentRoot (builder As IWebHostBuilder, solutionRelativePath As String, applicationBasePath As String, Optional solutionName As String = "*.sln") As IWebHostBuilder

Parameters

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.

Applies to