Skip to content

Commit fadf09f

Browse files
committed
VS2022 fix
1 parent f3ab184 commit fadf09f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apothecary/apothecary

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,11 @@ if [ "$TYPE" = "vs" ]; then
672672
if [ "${VS_VER}" = "17" ] || [ "${VS_VER}" = "18" ]; then
673673
# VS 2022 / 2026+ → under Program Files\
674674
BASE_DIR="${DRIVE}/Program Files/Microsoft Visual Studio"
675-
YEAR_PATH="${VS_VER}" # We'll use 2022 or 18 directly for folder name
675+
if [ "${VS_VER}" = "17" ]; then
676+
YEAR_PATH="2022"
677+
else
678+
YEAR_PATH="${VS_VER}" #18 for 2026+
679+
fi
676680
elif [ "${VS_VER}" = "15" ]; then
677681
BASE_DIR="${DRIVE}/Program Files (x86)/Microsoft Visual Studio"
678682
YEAR_PATH="2017"

0 commit comments

Comments
 (0)