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" />
                    
Directory.Packages.props
<PackageReference Include="AiritiUtility.LoggerSetting" />
                    
Project file
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
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=AiritiUtility.LoggerSetting&version=0.0.1
                    
Install as a Cake Tool

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>

發佈方法

  1. Ctrl + ` (開啟終端機)
  2. cd ProjectName 進專案資料夾(ProjectName 改為對應的專案名稱)
  3. 執行以下指令對應的發佈腳本
Publish_TEST.ps1
Publish_PILOT.ps1
Publish_PROD.ps1
Product 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.

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