WebHostBuilderExtensions.UseSolutionRelativeContentRoot 方法

定义

重载

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String)

相对于 设置 的内容 solutionRelativePath根。

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String)

相对于 设置 的内容 solutionRelativePath根。

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String)

相对于 设置 的内容 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

参数

solutionRelativePath
String

解决方案文件的目录。

solutionName
String

要使内容成为根目录的解决方案文件的名称。

返回

IWebHostBuilder

适用于

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String)

相对于 设置 的内容 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

参数

solutionRelativePath
String

解决方案文件的目录。

applicationBasePath
String

应用目录的根目录。

solutionName
String

要使内容成为根目录的解决方案文件的名称。

返回

IWebHostBuilder

适用于