# 2.ติดตั้ง .NET Core SDK

💬 ก่อนที่เราจะกระโดดเข้าไปลองเขียน API เลย เราต้องทำการติดตั้งตัว .NET Core เสียก่อน เพื่อเตรียมเครื่องเราให้พร้อมในการเขียน API กันครับ

{% hint style="success" %}
สำหรับเครื่องใครที่มี .NET Core แล้วให้ข้ามไปดูขั้นตอนถัดไปได้เลยนะครับ
{% endhint %}

{% embed url="<https://www.youtube.com/watch?v=Y2Rg-jiqSVE&list=PLUjAn8nwWniheN3OLy6i7xu1VYq4Tzj7p&index=2>" %}

## 🎯 สรุปสั้นๆ

### 👨‍🚀 ติดตั้ง .NET Core SDK

เข้าไปดาวโหลดได้จากลิงค์นี้ <https://dotnet.microsoft.com/download>

{% hint style="warning" %}
สำหรับเครื่องใครที่ลง Visual Studio 2017 ให้ดาวโหลดตัวที่เขียนว่า Visual Studio 2017 ด้วยนะครับไม่งั้นเดี๋ยวจะทำให้เกิดความวุ่นวายขึ้นในเครื่องของท่านเอง
{% endhint %}

### 👨‍🚀 คำสั่งในการทดสอบ

หลังจากที่ติดตั้ง .NET Core SDK เรียบร้อยแล้ว ให้ลองเปิด Command Prompt หรือ Terminal ขึ้นมาแล้วพิมพ์คำสั่งด้านล่างนี้ลงไปเลยครับ

```
dotnet
```

ซึ่งถ้าลองพิมพ์แล้วมันรู้จักคำสั่งนี้ก็แสดงว่าพร้อมใช้งานแล้วครับป๋ม


---

# Agent Instructions: 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:

```
GET https://www.saladpuk.com/web/web-api-101/net-core-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
