WebHostBuilderExtensions.UseSolutionRelativeContentRoot 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
UseSolutionRelativeContentRoot(IWebHostBuilder, String, String) |
相对于 设置 的内容 |
UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String) |
相对于 设置 的内容 |
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
相对于 设置 的内容 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
参数
- builder
- IWebHostBuilder
- solutionRelativePath
- String
解决方案文件的目录。
- solutionName
- String
要使内容成为根目录的解决方案文件的名称。
返回
适用于
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
相对于 设置 的内容 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
参数
- builder
- IWebHostBuilder
- solutionRelativePath
- String
解决方案文件的目录。
- applicationBasePath
- String
应用目录的根目录。
- solutionName
- String
要使内容成为根目录的解决方案文件的名称。