ConfigUtility 1.0.0
dotnet add package ConfigUtility --version 1.0.0
NuGet\Install-Package ConfigUtility -Version 1.0.0
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="ConfigUtility" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ConfigUtility" Version="1.0.0" />
<PackageReference Include="ConfigUtility" />
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 ConfigUtility --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ConfigUtility, 1.0.0"
#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 ConfigUtility@1.0.0
#: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=ConfigUtility&version=1.0.0
#tool nuget:?package=ConfigUtility&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
C#通用開發版本之發佈套件
目的
當開發者在某專案安裝此套件後,會發現此專案中會自動安裝Rolsyn分析器並啟用他的某些分析規則。建議您寫出更乾淨、效能更佳且更容易維護的專案。
功能
注意,此分析規則只會套用在此專案根目錄底下,且針對上層檔案中啟動某些分析規則,不適用於此專案。
若要上層檔案中啟動某些分析規則也適用於此專案,請移除.editorconfig檔中root = true(位於第一行)。
至少下列分析規則會被啟用(其實還有很多沒列出來,建議問AI Model這些規則的意思):
- 建議
- 建議針對非同步方法的呼叫,呼叫
.ConfigureAwait(false) - 建議靜態欄位使用
PascalCase命名規範 - 建議非同步方法名稱以
Async結尾 - 建議偏好使用
var來宣告變數
- 強制
- 強制所有的方法定義前顯示指定存取修飾詞(i.e.有關保護層級的修飾詞)(public, private, protected or internal)
- 強制使用簡潔的
Using引用 - 強制介面必須以
I開頭 - 強制呼叫非同步方法時應使用
await
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
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 |
|---|---|---|
| 1.0.0 | 250 | 1/24/2026 |