diff --git a/premake5.files.lua b/premake5.files.lua
index 06c1a63ced7..e68d79ae8a0 100644
--- a/premake5.files.lua
+++ b/premake5.files.lua
@@ -671,6 +671,9 @@ function sumatrapdf_files()
"scratch.txt",
"../docs/*.txt",
"../docs/md/*.md",
+ "../premake5.lua",
+ "../premake5.files.lua",
+ "../.gitignore",
})
filter {"configurations:Debug or DebugFull"}
files_in_dir("src", {
diff --git a/vs2022/SumatraPDF-dll.vcxproj b/vs2022/SumatraPDF-dll.vcxproj
index d85a6c5aa8d..9d837b07c74 100644
--- a/vs2022/SumatraPDF-dll.vcxproj
+++ b/vs2022/SumatraPDF-dll.vcxproj
@@ -1376,6 +1376,7 @@
+
@@ -1418,6 +1419,8 @@
+
+
diff --git a/vs2022/SumatraPDF-dll.vcxproj.filters b/vs2022/SumatraPDF-dll.vcxproj.filters
index c3916f1d43d..b399307c387 100644
--- a/vs2022/SumatraPDF-dll.vcxproj.filters
+++ b/vs2022/SumatraPDF-dll.vcxproj.filters
@@ -547,6 +547,7 @@
+
docs\md
@@ -673,6 +674,8 @@
docs
+
+
src\ext
diff --git a/vs2022/SumatraPDF.vcxproj b/vs2022/SumatraPDF.vcxproj
index eb4229922c8..e1aebc58732 100644
--- a/vs2022/SumatraPDF.vcxproj
+++ b/vs2022/SumatraPDF.vcxproj
@@ -1327,6 +1327,7 @@
+
@@ -1369,6 +1370,8 @@
+
+
diff --git a/vs2022/SumatraPDF.vcxproj.filters b/vs2022/SumatraPDF.vcxproj.filters
index 9c76cd87789..d1ebcc46d3a 100644
--- a/vs2022/SumatraPDF.vcxproj.filters
+++ b/vs2022/SumatraPDF.vcxproj.filters
@@ -544,6 +544,7 @@
+
docs\md
@@ -670,6 +671,8 @@
docs
+
+
src\ext