---
description: Build the simulator on Windows!
---

# Building on Windows

In Windows systems, you have two ways to build the simulator: one if you use Visual Studio 2022 or later, and one if you prefer doing everything via the command-line. Make sure that your computer has the following dependencies:

* [Git for Windows](https://git-scm.com/download/win)
* [.NET 8.0 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) (usually installed with Visual Studio 17.8 or later)

### Visual Studio 2022+

Before being able to build Nitrocid KS, please make sure that you have at least Visual Studio 2022 version 17.8 or later that supports building projects for .NET 8.0. You can get Visual Studio [here](https://visualstudio.microsoft.com/).

Once you have Visual Studio installed with at least the .NET 8.0 SDK and the .NET development workload, follow these steps:

1. Open Visual Studio and press `Clone Repository`
2.  In the repository location field, write `https://github.com/Aptivi/NitrocidKS.git`

    <div align="left"><figure><img src="https://979265983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKBgZy6xqjdYb7KIbxI6u%2Fuploads%2Fgit-blob-419f56ea0631717c4b27170e1cf28feb921d5744%2F072-vsbuild.png?alt=media" alt=""><figcaption></figcaption></figure></div>
3. Press `Clone`. The clone may need to take a few minutes depending on your Internet connection.
4. Press `Solution Explorer` » `Switch Views` and double click on `Nitrocid.sln`\
   ![](https://979265983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKBgZy6xqjdYb7KIbxI6u%2Fuploads%2Fgit-blob-7eb115356d0c1ee2a6bdd8e49fd43eb710c2d5f9%2F073-vsbuild.png?alt=media)
5. Press `Start` or press `Build` » `Build Solution` to build\
   <img src="https://979265983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKBgZy6xqjdYb7KIbxI6u%2Fuploads%2Fgit-blob-f1ba1e4c253c291463cc9feda4616effccc936be%2F074-vsbuild.png?alt=media" alt="" data-size="original">
6.  Navigate to the build output folder, `KSBuild`, and double click on the `Nitrocid.exe` file\\

    <figure><img src="https://979265983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKBgZy6xqjdYb7KIbxI6u%2Fuploads%2Fgit-blob-5498546875a87b7223217d8d1c7cef943350e2ef%2F075-vsbuild.png?alt=media" alt=""><figcaption></figcaption></figure>

### Using the command-line

If you are a hardcore command-line user or if you prefer using the command-line, follow these steps to build Nitrocid KS right from the command line:

1. Open `Git Bash` on your work directory
2. Execute `git clone https://github.com/Aptivi/NitrocidKS.git`
3. Navigate to the cloned repository, `NitrocidKS`
4. Execute `dotnet restore` and `dotnet build`
5.  After building is done, run `dotnet run` on the `Nitrocid.csproj` file like so:\\

    <figure><img src="https://979265983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKBgZy6xqjdYb7KIbxI6u%2Fuploads%2Fgit-blob-2e4e1cb77fccdcb2b68a912ae2ff56022a558406%2F076-vsbuild.png?alt=media" alt=""><figcaption></figcaption></figure>
