diff --git a/.github/workflows/ports_windows.yml b/.github/workflows/ports_windows.yml
index be2a2a8dac..6d94c9c808 100644
--- a/.github/workflows/ports_windows.yml
+++ b/.github/workflows/ports_windows.yml
@@ -61,7 +61,7 @@ jobs:
- name: Build mpy-cross.exe
run: msbuild mpy-cross\mpy-cross.vcxproj -maxcpucount -property:Configuration=${{ matrix.configuration }} -property:Platform=${{ matrix.platform }}
- name: Update submodules
- run: git submodule update --init lib/micropython-lib
+ run: msbuild ports\windows\micropython.vcxproj -target:UpdateSubmodules -property:Configuration=${{ matrix.configuration }} -property:Platform=${{ matrix.platform }} -property:PyVariant=${{ matrix.variant }}
- name: Build micropython.exe
run: msbuild ports\windows\micropython.vcxproj -maxcpucount -property:Configuration=${{ matrix.configuration }} -property:Platform=${{ matrix.platform }} -property:PyVariant=${{ matrix.variant }}
- name: Get micropython.exe path
diff --git a/ports/windows/README.md b/ports/windows/README.md
index 2b3ed44599..268d5f9962 100644
--- a/ports/windows/README.md
+++ b/ports/windows/README.md
@@ -69,6 +69,7 @@ In the IDE, open `micropython-cross.vcxproj` and `micropython.vcxproj` and build
To build from the command line:
msbuild ../../mpy-cross/mpy-cross.vcxproj
+ msbuild micropython.vcxproj /t:UpdateSubmodules
msbuild micropython.vcxproj
__Variants__
diff --git a/ports/windows/micropython.vcxproj b/ports/windows/micropython.vcxproj
index bd647f6736..462821a6a0 100644
--- a/ports/windows/micropython.vcxproj
+++ b/ports/windows/micropython.vcxproj
@@ -108,7 +108,7 @@
-
+
diff --git a/ports/windows/msvc/common.props b/ports/windows/msvc/common.props
index 55c9c934f2..ecb6641371 100644
--- a/ports/windows/msvc/common.props
+++ b/ports/windows/msvc/common.props
@@ -62,4 +62,16 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/ports/windows/variants/dev/mpconfigvariant.props b/ports/windows/variants/dev/mpconfigvariant.props
index be1f1ae51e..be1ee1eb29 100644
--- a/ports/windows/variants/dev/mpconfigvariant.props
+++ b/ports/windows/variants/dev/mpconfigvariant.props
@@ -8,4 +8,7 @@
%(PreprocessorDefinitions);MICROPY_ROM_TEXT_COMPRESSION=1
+
+
+
diff --git a/ports/windows/variants/standard/mpconfigvariant.props b/ports/windows/variants/standard/mpconfigvariant.props
index ea8bf0bc82..d927994087 100644
--- a/ports/windows/variants/standard/mpconfigvariant.props
+++ b/ports/windows/variants/standard/mpconfigvariant.props
@@ -3,4 +3,7 @@
$(PyWinDir)\variants\manifest.py
+
+
+