DuckStudio.CatFood 1.0.0

dotnet add package DuckStudio.CatFood --version 1.0.0
                    
NuGet\Install-Package DuckStudio.CatFood -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="DuckStudio.CatFood" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DuckStudio.CatFood" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="DuckStudio.CatFood" />
                    
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 DuckStudio.CatFood --version 1.0.0
                    
#r "nuget: DuckStudio.CatFood, 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 DuckStudio.CatFood@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=DuckStudio.CatFood&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=DuckStudio.CatFood&version=1.0.0
                    
Install as a Cake Tool

DuckStudio.CatFood

该库是 Python 库 catfood 在 C# 中的实现,包含一些控制台应用程序的常用代码。

和 Python 库的区别

功能 Python C#
functions.exceptions.* 🕗 (正在施工)
functions.format.github ✅[^1]
functions.github.api 部分支持[^2]
functions.constant
functions.files
functions.print 除此之外还新增了 PrintWithPrefix() 方法、对消息头中的文字进行本地化
functions.terminal

[^1]: ResolvesIssue() 方法支持使用 int 值作为输入参数,Python 包在未来也将支持(DuckDuckStudio/catfood#15)。 [^2]: 本包没有实现 请求GitHubAPI() 方法,建议改用 Octokit 实现。

依赖

该库的实现离不开这些项目,感谢开源社区!

有关这些依赖的许可文件,请参见 NOTICE.md

许可

本包和对应的 Python 库一样,使用 Apche-2.0 许可证。

Product Compatible and additional computed target framework versions.
.NET 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.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 0 3/16/2026

初始实现,有关和 Python 库的对比请参阅 README.md