> For the complete documentation index, see [llms.txt](https://docs.apryse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apryse.com/core/get-started/faq/set-dependencies-with-visual-studio-cpp.md).

# How to set up dependencies with Visual Studio and Apryse SDK?

World's #1 PDF SDK Library for Web, Mobile, Server, Desktop

If you are new to the Visual Studio development environment, follow along with these steps to set the dependencies for your project with Apryse SDK Correctly. In such a case it is recommended to use Visual Studio 2017 or 2019.

1. Open a new instance of Visual Studio. Go to the `File` menu and create a new project `File > New > Project...`You can also open the `New Project` dialog using `Ctrl + Shift + N`.
2. Click on `Visual C++` in the left navigation bar and Select `Windows Console Application`.
3. Set a name for the console application. This guide will call it `myapp`. Click on `OK`. This should generate a default console project and open a `.cpp` file for you in Visual Studio.

![](https://3779731113-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fziw3GiL98Xfj63F3He8h%2Fuploads%2Fgit-blob-51eaa25568bc4b53fa709200b1675775633a54cb%2F05eb533de20e95e2ee4537e6db64325bc2cb84c2-1920x1080.png?alt=media)

1. Find the `Solution Explorer` to the right of the screen and right click on your project's name. At the bottom of the list, click on the `Properties` option. This will open a dialog that will allow you to define important variables to compile your project with PDFNet classes and methods.
2. In the Configuration properties in the left panel, expand the C/C++ menu. In General settings, find the `Additional Include Directories` field. Add the following path:You can open a dialog to do the same by clicking on the `Edit...` option from the drop down for this field.Click on `Apply`.

{% tabs %}
{% tab title="Shell" %}
{% code lineNumbers="true" %}

```sh
PDFNET_BASE\Headers
```

{% endcode %}
{% endtab %}
{% endtabs %}

![](https://3779731113-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fziw3GiL98Xfj63F3He8h%2Fuploads%2Fgit-blob-f3f3e00f9ef4618012e60a3e689461820b478344%2F148d73847b9ba3be47392804792b385b2644b56c-1920x1080.png?alt=media)

1. Now navigate to the Linker Menu below C/C++. In the Input settings, find the `Additional Dependencies` and replace the entry with:**Note:** For Steps 5 & 6, remember to replace `PDFNET_BASE` with the copied path on your clipboard.

{% tabs %}
{% tab title="Shell" %}
{% code lineNumbers="true" %}

```sh
PDFNET_BASE\Lib\PDFNetC.lib;%(AdditionalDependencies)
```

{% endcode %}
{% endtab %}
{% endtabs %}

![](https://3779731113-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fziw3GiL98Xfj63F3He8h%2Fuploads%2Fgit-blob-f3f3e00f9ef4618012e60a3e689461820b478344%2F148d73847b9ba3be47392804792b385b2644b56c-1920x1080.png?alt=media)

1. Go back to your explorer and navigate to this directory:Copy the `PDFNetC.dll` file. Now find the output folder of the project and paste it there.By default, the path to your output folder will look similar to this:Remember to replace `User_Name` with the name of the current user.Alternatively, you can find your project by searching by its name in the Windows Search Bar.

{% tabs %}
{% tab title="Shell" %}
{% code lineNumbers="true" %}

```sh
PDFNET_BASE\Lib\
```

{% endcode %}
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Shell" %}
{% code lineNumbers="true" %}

```sh
C:\Users\User_Name\source\repos\myapp\myapp
```

{% endcode %}
{% endtab %}
{% endtabs %}


---

# 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.apryse.com/core/get-started/faq/set-dependencies-with-visual-studio-cpp.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.
