diff --git a/other/haxelib/templates/vs2015/__file__.vcxproj b/other/haxelib/templates/vs2015/__file__.vcxproj
index 84b912a51..46d4f8904 100644
--- a/other/haxelib/templates/vs2015/__file__.vcxproj
+++ b/other/haxelib/templates/vs2015/__file__.vcxproj
@@ -99,6 +99,9 @@
true
$(IntDir)\%(RelativeDir)
true
+ Use
+ stdafx.h
+ 4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723
Console
@@ -116,6 +119,9 @@
true
$(IntDir)\%(RelativeDir)
true
+ Use
+ stdafx.h
+ 4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723
Console
@@ -135,6 +141,9 @@
true
$(IntDir)\%(RelativeDir)
true
+ Use
+ stdafx.h
+ 4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723
Console
@@ -156,6 +165,9 @@
true
$(IntDir)\%(RelativeDir)
true
+ Use
+ stdafx.h
+ 4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723
Console
@@ -165,7 +177,10 @@
libhl.lib::foreach libraries::;::name::.lib::end::
- ::foreach cfiles::
+
+
+ Create
+ ::foreach cfiles::
::end::
::foreach hfiles::
diff --git a/other/haxelib/templates/vs2015/__file__.vcxproj.filters b/other/haxelib/templates/vs2015/__file__.vcxproj.filters
index 5b457d45f..c999fe126 100644
--- a/other/haxelib/templates/vs2015/__file__.vcxproj.filters
+++ b/other/haxelib/templates/vs2015/__file__.vcxproj.filters
@@ -1,6 +1,7 @@
- ::foreach cfiles::::if directory::
+
+ ::foreach cfiles::::if directory::
$$winPath(::directory::)
::else::
diff --git a/other/haxelib/templates/vs2015/stdafx.c b/other/haxelib/templates/vs2015/stdafx.c
new file mode 100644
index 000000000..fd4f341c7
--- /dev/null
+++ b/other/haxelib/templates/vs2015/stdafx.c
@@ -0,0 +1 @@
+#include "stdafx.h"
diff --git a/other/haxelib/templates/vs2015/stdafx.h b/other/haxelib/templates/vs2015/stdafx.h
new file mode 100644
index 000000000..fb845c21d
--- /dev/null
+++ b/other/haxelib/templates/vs2015/stdafx.h
@@ -0,0 +1,2 @@
+#define HLC_BOOT
+#include
diff --git a/other/haxelib/templates/vs2017/__file__.vcxproj b/other/haxelib/templates/vs2017/__file__.vcxproj
index d19e6c727..283fb14a5 100644
--- a/other/haxelib/templates/vs2017/__file__.vcxproj
+++ b/other/haxelib/templates/vs2017/__file__.vcxproj
@@ -101,6 +101,9 @@
true
$(IntDir)\%(RelativeDir)
true
+ Use
+ stdafx.h
+ 4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723
Console
@@ -119,6 +122,9 @@
true
$(IntDir)\%(RelativeDir)
true
+ Use
+ stdafx.h
+ 4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723
Console
@@ -139,6 +145,9 @@
true
$(IntDir)\%(RelativeDir)
true
+ Use
+ stdafx.h
+ 4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723
Console
@@ -161,6 +170,9 @@
true
$(IntDir)\%(RelativeDir)
true
+ Use
+ stdafx.h
+ 4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723
Console
@@ -170,7 +182,10 @@
libhl.lib::foreach libraries::;::name::.lib::end::
- ::foreach cfiles::
+
+
+ Create
+ ::foreach cfiles::
::end::
::foreach hfiles::
diff --git a/other/haxelib/templates/vs2017/__file__.vcxproj.filters b/other/haxelib/templates/vs2017/__file__.vcxproj.filters
index 5b457d45f..c999fe126 100644
--- a/other/haxelib/templates/vs2017/__file__.vcxproj.filters
+++ b/other/haxelib/templates/vs2017/__file__.vcxproj.filters
@@ -1,6 +1,7 @@
- ::foreach cfiles::::if directory::
+
+ ::foreach cfiles::::if directory::
$$winPath(::directory::)
::else::
diff --git a/other/haxelib/templates/vs2017/stdafx.c b/other/haxelib/templates/vs2017/stdafx.c
new file mode 100644
index 000000000..fd4f341c7
--- /dev/null
+++ b/other/haxelib/templates/vs2017/stdafx.c
@@ -0,0 +1 @@
+#include "stdafx.h"
diff --git a/other/haxelib/templates/vs2017/stdafx.h b/other/haxelib/templates/vs2017/stdafx.h
new file mode 100644
index 000000000..fb845c21d
--- /dev/null
+++ b/other/haxelib/templates/vs2017/stdafx.h
@@ -0,0 +1,2 @@
+#define HLC_BOOT
+#include
diff --git a/other/haxelib/templates/vs2019/__file__.vcxproj b/other/haxelib/templates/vs2019/__file__.vcxproj
index b60046468..373be5454 100644
--- a/other/haxelib/templates/vs2019/__file__.vcxproj
+++ b/other/haxelib/templates/vs2019/__file__.vcxproj
@@ -99,6 +99,9 @@
true
$(IntDir)\%(RelativeDir)
true
+ Use
+ stdafx.h
+ 4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723
Console
@@ -117,6 +120,9 @@
true
$(IntDir)\%(RelativeDir)
true
+ Use
+ stdafx.h
+ 4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723
Console
@@ -135,6 +141,9 @@
true
$(IntDir)\%(RelativeDir)
true
+ Use
+ stdafx.h
+ 4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723
Console
@@ -153,6 +162,9 @@
true
$(IntDir)\%(RelativeDir)
true
+ Use
+ stdafx.h
+ 4703;4100;4101;4102;4204;4221;4244;4700;4701;4702;4703;4715;4716;4723
Console
@@ -162,7 +174,10 @@
libhl.lib::foreach libraries::;::name::.lib::end::
- ::foreach cfiles::
+
+
+ Create
+ ::foreach cfiles::
::end::
::foreach hfiles::
diff --git a/other/haxelib/templates/vs2019/__file__.vcxproj.filters b/other/haxelib/templates/vs2019/__file__.vcxproj.filters
index dd893d926..907c7ab06 100644
--- a/other/haxelib/templates/vs2019/__file__.vcxproj.filters
+++ b/other/haxelib/templates/vs2019/__file__.vcxproj.filters
@@ -1,6 +1,7 @@
- ::foreach cfiles::::if directory::
+
+ ::foreach cfiles::::if directory::
$$winPath(::directory::)
::else::
diff --git a/other/haxelib/templates/vs2019/stdafx.c b/other/haxelib/templates/vs2019/stdafx.c
new file mode 100644
index 000000000..fd4f341c7
--- /dev/null
+++ b/other/haxelib/templates/vs2019/stdafx.c
@@ -0,0 +1 @@
+#include "stdafx.h"
diff --git a/other/haxelib/templates/vs2019/stdafx.h b/other/haxelib/templates/vs2019/stdafx.h
new file mode 100644
index 000000000..fb845c21d
--- /dev/null
+++ b/other/haxelib/templates/vs2019/stdafx.h
@@ -0,0 +1,2 @@
+#define HLC_BOOT
+#include