AiritiUtility.LoggerSetting
0.0.1
dotnet add package AiritiUtility.LoggerSetting --version 0.0.1
NuGet\Install-Package AiritiUtility.LoggerSetting -Version 0.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AiritiUtility.LoggerSetting" Version="0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AiritiUtility.LoggerSetting" Version="0.0.1" />
<PackageReference Include="AiritiUtility.LoggerSetting" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AiritiUtility.LoggerSetting --version 0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AiritiUtility.LoggerSetting, 0.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AiritiUtility.LoggerSetting@0.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AiritiUtility.LoggerSetting&version=0.0.1
#tool nuget:?package=AiritiUtility.LoggerSetting&version=0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
VS 方案模版
使用說明
預設項目說明
.editorconfig
格式化設定 .editorconfig
Nuget.Config
加入 Baget_Airiti Nuget 來源
.gitignore
- 基於 Vistual Studio 預設的 .gitignore 檔案
**/GitInfo.json忽略建置產生的 GitInfo.json 檔案
Directory.Build.targets
- 同時發佈多台機器的 Base 設定
- 抑制警告的空 Base 設定
/Tools 資料夾
PublishBase.ps1多台發佈主方法Publish_TEST.ps1發佈到 TEST 環境 (複製到專案下使用)Publish_PILOT.ps1發佈到 PILOT 環境 (複製到專案下使用)Publish_PROD.ps1發佈到 PROD 環境 (複製到專案下使用)
需要同時發佈多台機器,專案請額外做以下設定
每個專案下請複製一份以下檔案
- /Tools/Publish_TEST.ps1
- /Tools/Publish_PILOT.ps1
- /Tools/Publish_PROD.ps1
.csproj 區塊內加入下列內容 (Include 值 對應已設定的 WebDeploy 檔名)
⚠️ 發佈檔名不要有
.,比如TEST.192,下指令發佈會讀不到。
<Project>
<ItemGroup>
<DeployProfiles Include="TEST_192" Condition="'$(DeployTarget)' == 'TEST'" />
<DeployProfiles Include="TEST_95" Condition="'$(DeployTarget)' == 'TEST'" />
<DeployProfiles Include="PILOT_27" Condition="'$(DeployTarget)' == 'PILOT'" />
<DeployProfiles Include="PILOT_95" Condition="'$(DeployTarget)' == 'PILOT'" />
<DeployProfiles Include="PROD_16" Condition="'$(DeployTarget)' == 'PROD'" />
<DeployProfiles Include="PROD_27" Condition="'$(DeployTarget)' == 'PROD'" />
<DeployProfiles Include="PROD_55" Condition="'$(DeployTarget)' == 'PROD'" />
<DeployProfiles Include="PROD_95" Condition="'$(DeployTarget)' == 'PROD'" />
</ItemGroup>
</Project>
發佈方法
Ctrl + `(開啟終端機)cd ProjectName進專案資料夾(ProjectName 改為對應的專案名稱)- 執行以下指令對應的發佈腳本
Publish_TEST.ps1
Publish_PILOT.ps1
Publish_PROD.ps1
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- AiritiUtility.Net (>= 0.1.2)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.5)
- Serilog (>= 4.3.1)
- Serilog.Settings.Configuration (>= 10.0.0)
- Serilog.Sinks.File (>= 7.0.0)
-
net8.0
- AiritiUtility.Net (>= 0.1.2)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.5)
- Serilog (>= 4.3.1)
- Serilog.Settings.Configuration (>= 10.0.0)
- Serilog.Sinks.File (>= 7.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.1 | 96 | 4/9/2026 |