diff --git a/docs/quickstart/_vs.mdx b/docs/quickstart/_vs.mdx index 5a4166b90d..1bbddb3aab 100644 --- a/docs/quickstart/_vs.mdx +++ b/docs/quickstart/_vs.mdx @@ -4,11 +4,12 @@ import ReleaseLink from '@site/src/components/ReleaseLink'; Before installing PcapPlusPlus make sure you have the prerequisites installed for [Visual Studio](./install/vs#prerequisites). Please notice that the currently supported versions of Visual Studio are 2019 and 2022. -Download the pre-compiled package for the Visual Studio version you have (VS2019 or VS2022) from the . +Download the pre-compiled package for the Visual Studio version you have (VS2019 or VS2022) from the . Please notice there are 4 different configurations +for each VS version - x64 / Win32 and Debug / Release. It's important to remember because you'll use them later. ### Step 2 - create your first app -Go to: `Drive:\path\to\your\package\ExampleProject`. +Go to: `Drive:\path\to\your\package\example-app`. Make sure you see the following files: @@ -32,17 +33,31 @@ import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; - + ```cmd -cmake -G "Visual Studio 16 2019" -S . -B build -DPcapPlusPlus_ROOT=Drive:\path\to\your\package -DPCAP_ROOT=Drive:\path\to\npcap-sdk -DPacket_ROOT=Drive:\path\to\npcap-sdk +cmake -A x64 -G "Visual Studio 16 2019" -S . -B build -DPcapPlusPlus_ROOT=Drive:\path\to\your\package -DPCAP_ROOT=Drive:\path\to\npcap-sdk -DPacket_ROOT=Drive:\path\to\npcap-sdk ``` - + ```cmd -cmake -G "Visual Studio 17 2022" -S . -B build -DPcapPlusPlus_ROOT=Drive:\path\to\your\package -DPCAP_ROOT=Drive:\path\to\npcap-sdk -DPacket_ROOT=Drive:\path\to\npcap-sdk +cmake -A Win32 -G "Visual Studio 16 2019" -S . -B build -DPcapPlusPlus_ROOT=Drive:\path\to\your\package -DPCAP_ROOT=Drive:\path\to\npcap-sdk -DPacket_ROOT=Drive:\path\to\npcap-sdk +``` + + + + +```cmd +cmake -A x64 -G "Visual Studio 17 2022" -S . -B build -DPcapPlusPlus_ROOT=Drive:\path\to\your\package -DPCAP_ROOT=Drive:\path\to\npcap-sdk -DPacket_ROOT=Drive:\path\to\npcap-sdk +``` + + + + +```cmd +cmake -A Win32 -G "Visual Studio 17 2022" -S . -B build -DPcapPlusPlus_ROOT=Drive:\path\to\your\package -DPCAP_ROOT=Drive:\path\to\npcap-sdk -DPacket_ROOT=Drive:\path\to\npcap-sdk ``` @@ -50,10 +65,23 @@ cmake -G "Visual Studio 17 2022" -S . -B build -DPcapPlusPlus_ROOT=Drive:\path\t Build the app: + + + +```cmd +cmake --build build --config Debug +``` + + + + ```cmd -cmake --build build +cmake --build build --config Release ``` + + + An executable file will be created which contains the compiled app. You can now run it and should be able to see the following output: ```cmd