Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leoli0605/csharp
C# Example Code
https://github.com/leoli0605/csharp
bitmap csharp dng enum folder folderbrowserdialog hid image image-processing progress-bar progressbar thread usb usb-hid winforms
Last synced: about 2 months ago
JSON representation
C# Example Code
- Host: GitHub
- URL: https://github.com/leoli0605/csharp
- Owner: leoli0605
- Created: 2024-02-27T05:05:44.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-26T04:03:40.000Z (5 months ago)
- Last Synced: 2024-07-26T05:22:03.730Z (5 months ago)
- Topics: bitmap, csharp, dng, enum, folder, folderbrowserdialog, hid, image, image-processing, progress-bar, progressbar, thread, usb, usb-hid, winforms
- Language: C#
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# C# 程式碼範例集合
這是一個簡單的 C# 程式碼範例集合。
| Example | Description | Platform |
| --------------------------------------------------- | ------------------------------------------------------------- | --------------------- |
| [CrossImageToBase64](./CrossImageToBase64/) | Convert image to base64 string | Windows, macOS, Linux |
| [CrossRawToDng](./CrossRawToDng/) | Convert RAW image to DNG format | Windows, macOS, Linux |
| [CrossUSB](./CrossUSB/) | Control USB device across platform | Windows, macOS, Linux |
| [DemoEnum](./DemoEnum/) | Demonstrate how to use an attribute to extend an Enum | Windows, macOS, Linux |
| [DemoThread](./DemoThread/) | Demonstrate how to use Thread | Windows, macOS, Linux |
| [WinBitmap](./WinBitmap/) | Convert image to grayscale | Windows |
| [WinFolderBrowserDialog](./WinFolderBrowserDialog/) | Open a folder browser dialog with multi-select | Windows |
| [WinLogHelper](./WinLogHelper/) | Print log to Windows Event Viewer | Windows |
| [WinProgressBar](./WinProgressBar/) | Progress Bar with Text | Windows |
| [WinUSB](./WinUSB/) | List USB devices via WMI (Windows Management Instrumentation) | Windows |### 系統需求
- 對於 Windows,需要 [Chocolatey](https://chocolatey.org/install) 包管理器
- 對於 macOS,需要 [Homebrew](https://brew.sh/)
- 對於 Linux (Debian/Ubuntu),需要 apt-get#### 安裝 . NET SDK
根據您的操作系統,自動安裝 . NET 6.0 SDK:
```bash
make install
```#### 新增專案
新增一個名為 `` 的 . NET 控制台專案:
```bash
make new NAME=
```#### 刪除專案
刪除一個名為 `` 的專案,包括它的所有檔案和目錄:
```bash
make remove NAME=
```#### 列出 SDK 和專案
列出已安裝的 . NET SDK 版本和解決方案中的專案:
```bash
make list
```#### 運行專案
運行一個名為 `` 的專案:
```bash
make run NAME=
```#### 添加套件
向名為 `` 的專案添加名為 `` 的套件:
```bash
make add NAME= PACK=
```#### 注意
- 確保在使用任何命令之前,您已經安裝了所有必要的依賴項。
- 專案名稱 (`NAME`) 和套件名稱 (`PACK`) 是必須手動指定的參數。
- 如果未在命令行指定 `NAME`,系統將嘗試從 `.env` 檔案讀取或提示您輸入。