Building#

Building in IDE#

1. To build HIP-VS open the corresponding solution by Visual Studio:

HIPExtension2017.sln targeting VS 2017.

HIPExtension2019.sln targeting VS 2019.

HIPExtension2022.sln targeting VS 2022.

2. Build the solution in the Release Configuration for Any CPU Platform.

Building in shell#

Consider HIP-VS as a root folder of the cloned HIP-VS project:

set HIP-VS="<path_to_the_root_folder_of_the_cloned_HIP-VS>"

or

setx HIP-VS "<path_to_the_root_folder_of_the_cloned_HIP-VS>"

Building in shell for VS 2017#

1. Install Microsoft NuGet utility. The following command should be run only once:

winget install Microsoft.NuGet

2. Change the current directory to the HIP-VS extension subfolder:

cd %HIP-VS%\extension

3. Run NuGet restoring (downloading or local copying) of all dependent packages used by HIP-VS:

nuget restore HIPExtension2017.sln

4. Build HIP-VS for VS 2017:

"c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" HIPExtension2017.sln -t:build -p:Configuration=Release -p:Platform="any cpu" -m

Building in shell for VS 2019#

1. Change the current directory to the HIP-VS extension subfolder:

cd %HIP-VS%\extension

2. Run restoring (downloading or local copying) of all dependent packages used by HIP-VS:

"c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe" HIPExtension2019.sln -t:restore -p:RestorePackagesConfig=true

3. Build HIP-VS for VS 2019:

"c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe" HIPExtension2019.sln -t:build -p:Configuration=Release -p:Platform="any cpu" -m

Building in shell for VS 2022#

1. Change the current directory to the HIP-VS extension subfolder:

cd %HIP-VS%\extension

2. Run restoring (downloading or local copying) of all dependent packages used by HIP-VS:

"c:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe" HIPExtension2022.sln -t:restore -p:RestorePackagesConfig=true

3. Build HIP-VS for VS 2022:

"c:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe" HIPExtension2022.sln -t:build -p:Configuration=Release -p:Platform="any cpu" -m

Building results#

After a successful build, the built VSIX packages will be placed in bin\Release subfolders of: