diff --git a/appveyor.yml b/appveyor.yml
index 83a77999c..968a381f5 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -15,7 +15,7 @@ branches:
#---------------------------------#
# Operating system (build VM template)
-os: Visual Studio 2017
+os: Visual Studio 2022
#---------------------------------#
# build configuration #
diff --git a/launcher/CmderLauncher.vcxproj b/launcher/CmderLauncher.vcxproj
index 96b1f47b0..28431d27d 100644
--- a/launcher/CmderLauncher.vcxproj
+++ b/launcher/CmderLauncher.vcxproj
@@ -27,7 +27,7 @@
Application
true
- v140
+ v143
Unicode
@@ -35,12 +35,12 @@
false
true
Unicode
- v140
+ v143
Application
true
- v141_xp
+ v143
Unicode
@@ -48,7 +48,7 @@
false
true
Unicode
- v141
+ v143
@@ -190,4 +190,4 @@
-
+
\ No newline at end of file
diff --git a/scripts/build.ps1 b/scripts/build.ps1
index 7a78a85b6..bf2f99ad8 100644
--- a/scripts/build.ps1
+++ b/scripts/build.ps1
@@ -38,24 +38,23 @@ Param(
# -whatif switch to not actually make changes
# Path to the vendor configuration source file
- [string]$sourcesPath = "..\vendor\sources.json",
+ [string]$sourcesPath = "$PSScriptRoot\..\vendor\sources.json",
# Vendor folder location
- [string]$saveTo = "..\vendor\",
+ [string]$saveTo = "$PSScriptRoot\..\vendor\",
# Launcher folder location
- [string]$launcher = "..\launcher",
+ [string]$launcher = "$PSScriptRoot\..\launcher",
# Config folder location
- [string]$config = "..\config",
+ [string]$config = "$PSScriptRoot\..\config",
# New launcher if you have MSBuild tools installed
[switch]$Compile
)
# Get the scripts and cmder root dirs we are building in.
-$ScriptRoot = Split-Path -Parent -Path $MyInvocation.MyCommand.Definition
-$cmder_root = $ScriptRoot.replace("\scripts","")
+$cmder_root = Resolve-Path "$PSScriptRoot\.."
# Dot source util functions into this scope
. "$PSScriptRoot\utils.ps1"