Visual Studio
NetIP is coded, debugged and built using Visual Studio 2022. This page is here to help you install & configure Visual Studio for NetIP.
Install Visual Studio 2022 Community
- Go to the Visual Studio website. Click on "Download" , make sure to select the Community Edition.
- Launch the downloaded Visual Studio Installer executable.
- Follow the typical steps to install VS 2022, making sure to select the following items to install:
Workloads > Desktop & Mobile > .NET desktop development
Install NSIS Syntax Highlighting (Recommended)
Visual Studio doesn't highlight the NSIS scripts syntax by default. Opening .nsi
script files will result into a bunch of black & white lines which is not ideal for debugging.
Fortunately, there is a VS Code NSIS plugin that can be manually installed for Visual Studio:
-
Recommended: Close ALL the
.nsi
scripts tabs opened in Visual Studio. -
Close Visual Studio.
-
Open a File Explorer and go to
%USERPROFILE%
(your Home Folder located intoC:\Users\<your username>\
).- Go inside the
.vs
folder. If it doesn't exist, create it (don't forget the dot!) - Go inside the
Extensions
folder. Again, if it doesn't exist, create it. - Create a folder called
nsis
. The final path should look like this :C:\Users\<your username>\.vs\Extensions\nsis
.
- Go inside the
-
Download the Source code> (not the
.vsix
file) of the latest Release in.zip
format) -
Open the source code zip archive, and extract only the folders
snippets
andsyntaxes
into the folderC:\Users\<your username>\.vs\Extensions\nsis
. -
Re-open the Visual Studio solution, open a
.nsi
file and the syntax should be highlighted! 🎉
The syntax highlighting can be a bit finicky during the first launch, especially if you didn't close all the .nsi
tabs before closing Visual Studio.
You may need to close all the tabs and/or restart Visual Studio again for the syntax highlighting to activate.