WebHostBuilderExtensions.UseSolutionRelativeContentRoot 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
UseSolutionRelativeContentRoot(IWebHostBuilder, String, String) |
設定 相對於 的內容根 |
UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String) |
設定 相對於 的內容根 |
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
參數
- builder
- IWebHostBuilder
- solutionRelativePath
- String
方案檔的目錄。
- solutionName
- String
要讓內容根目錄相對於的方案檔名稱。
傳回
適用於
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
參數
- builder
- IWebHostBuilder
- solutionRelativePath
- String
方案檔的目錄。
- applicationBasePath
- String
應用程式目錄的根目錄。
- solutionName
- String
要讓內容根目錄相對於的方案檔名稱。