> For the complete documentation index, see [llms.txt](https://abi.gitbook.io/net-core/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://abi.gitbook.io/net-core/3.-servicios-rest/3.3-paquetes-nuget.md).

# 2.3 Paquetes Nuget

.Net cuenta con librerías con funciones generales las cuales son desarrolladas por Microsoft y otras empresas para poderlas reutilizarlas en tus proyectos.

Nuget ([www.nuget.org](https://abi.gitbook.io/net-core/3.-servicios-rest/www.nuget.org))  es el repositorio oficial de microsoft para descargar e integrar los paquetes a tu proyecto.

Se necesitarán los siguientes paquetes

| Paquete                                          | Descripción                                            |
| ------------------------------------------------ | ------------------------------------------------------ |
| Microsoft.EntityFrameworkCore.Relational         | Componentes para manejar la base de datos              |
| Pomelo.EntityFrameworkCore.MySql                 | Permite utilizar una base de datos Mysql.              |
| Microsoft.EntityFrameworkCore.InMemory           | Permite utilizar una base de datos en memoria.         |
| Swashbuckle.AspNetCore                           | Permite generar la documentación de tus servicios REST |
| Microsoft.VisualStudio.Web.CodeGeneration.Design | Permite generar código para los servicios              |
| Microsoft.AspNetCore.Authentication.JwtBearer    | Para agregar la seguridad basada en JWT Token          |

### Instalar paquetes Nuget con Visual Studio Comunity

1. Clic derecho sobre el proyecto -> Administrar Paquetes Nuget

![](/files/-LNxINshT9tGV8VTgHtC)

2\. Dar clic en la pestaña **Examinar** y teclear el nombre del paquete que deseas instalar en este caso **Pomelo.EntityFrameworkCore.MySql** al instalar este paquete instalara todos los paquetes necesarios e instalara también el paquete Microsoft.EntityFrameworkCore.Relational

![](/files/-LO1I5CydnKp_LAGHCa9)

A continuación, te mostrará una ventana con todos los paquetes a instalar y/o actualizar

![](/files/-LO1IWBY1T2wspAnB-XO)

Algunos paquetes cuentan con licencia por lo cual debes aceptar los términos de la licencia. Da clic en aceptar

![](/files/-LO1IrCsOBrTeRacvgGp)

### Instalar paquetes Nuget con comandos

También puedes instalar los paquetes con comandos.

1. Dar clic en **Herramientas -> Administrador de paquetes Nuget -> Consola del Administrador de paquetes**

![](/files/-LO1NrH4AQoV7z9_4X08)

2\. Teclear el comando **Install-Package Microsoft.EntityFrameworkCore.InMemory**

![](/files/-LO1OcB0XQwhdkL2PI9U)


---

# 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://abi.gitbook.io/net-core/3.-servicios-rest/3.3-paquetes-nuget.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.
