> For the complete documentation index, see [llms.txt](https://docs.proudnet.com/proudnet.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.proudnet.com/proudnet.cn/proudnet/2.setting/c.md).

# C\#

若要在 DotNet Framework 的 C# 專案中使用 ProudNet，必須將 dll 放置在與執行檔相同的路徑中。

{% hint style="danger" %}
請注意，即使是伺服器程序，也必須引用客戶端庫才能建置和運行。
{% endhint %}

<mark style="color:orange;">版本1.7.40679</mark>和<mark style="color:orange;">版本1.7.47942</mark>之間必須引用的dll的配置略有不同。

## 版本 1.7.40679 或更低版本

* /lib/DotNet/ProudDotNetClient.dll
* /lib/DotNet/**$(Platform)**/ProudNetClientPlugin.dll
* /lib/DotNet/ProudDotNetServer.dll
* /lib/DotNet/**$(Platform)**/ProudNetServerPlugin.dll

## 版本大於 1.7.40679 但小於 1.7.47942

* /lib/DotNet/ProudDotNetClient.dll
* /lib/DotNet/**$(Platform)**/ProudNetClientPlugin.dll
* /lib/DotNet/**$(Platform)**/ProudNetClient.dll
* /lib/DotNet/ProudDotNetServer.dll
* /lib/DotNet/**$(Platform)**/ProudNetServerPlugin.dll
* /lib/DotNet/**$(Platform)**/ProudNetServer.dll

## 版本 1.7.47942 或更高版本

{% hint style="warning" %}
從1.7.47942版本開始，OpenSSL模組不包含在伺服器模組中，因此必須將OpenSSL模組的dll版本加入與伺服器程式相同的路徑中。

由於 OpenSSL 的許可證，OpenSSL dll 檔案無法作為安裝檔案提供。\
必要的 OpenSSL dll 檔案可以透過下面的連結下載。\
\
下載連結：\
<https://kb.firedaemon.com/support/solutions/articles/4000121705> <https://wiki.openssl.org/index.php/Binaries>
{% endhint %}

{% hint style="info" %}
只要名稱設定為 <mark style="color:orange;">libcrypto-1\_1-x64.dll</mark> 和 <mark style="color:orange;">libssl-1\_1-x64.dll</mark>，就可以使用任何版本的 OpenSSL dll。
{% endhint %}

從1.7.47942版本開始，必須安裝VC重新分發套件才能使用DotNet模組。\
VC 2015 - 2019 可再發行軟體套件位於 ProudNet 安裝路徑的 Bin 資料夾中。

### - 所需的設定庫

* /lib/DotNet/ProudDotNetClient.dll
* /lib/DotNet/**$(Platform)**/ProudNetClientPlugin.dll
* /lib/DotNet/**$(Platform)**/ProudNetClient.dll
* /lib/DotNet/ProudDotNetServer.dll
* /lib/DotNet/**$(Platform)**/ProudNetServerPlugin.dll
* /lib/DotNet/**$(Platform)**/ProudNetServer.dll
* <mark style="color:orange;">libcrypto-1\_1-x64.dll</mark>
* <mark style="color:orange;">libssl-1\_1-x64.dll</mark>

***

## :arrow\_left: [返回](https://docs.proudnet.com/proudnet.cn/proudnet/2.setting/pages/YF7Z3CPCxDI0T1hoMsHR#2.-pidl)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.proudnet.com/proudnet.cn/proudnet/2.setting/c.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
