diff --git a/config.mak.uname b/config.mak.uname
index 57b7485996..7287b9a2fd 100644
--- a/config.mak.uname
+++ b/config.mak.uname
@@ -726,6 +726,21 @@ vcxproj:
perl contrib/buildsystems/generate -g Vcxproj
git add -f git.sln {*,*/lib,t/helper/*}/*.vcxproj
+ # Generate the LinkOrCopyBuiltins.targets file
+ (echo '' && \
+ echo ' ' && \
+ for name in $(BUILT_INS);\
+ do \
+ echo ' '; \
+ done && \
+ for name in $(REMOTE_CURL_ALIASES); \
+ do \
+ echo ' '; \
+ done && \
+ echo ' ' && \
+ echo '') >git/LinkOrCopyBuiltins.targets
+ git add -f git/LinkOrCopyBuiltins.targets
+
# Add common-cmds.h
$(MAKE) MSVC=1 SKIP_VCPKG=1 prefix=/mingw64 common-cmds.h
git add -f common-cmds.h
diff --git a/contrib/buildsystems/Generators/Vcxproj.pm b/contrib/buildsystems/Generators/Vcxproj.pm
index 1849ae24f5..26c1fd5487 100644
--- a/contrib/buildsystems/Generators/Vcxproj.pm
+++ b/contrib/buildsystems/Generators/Vcxproj.pm
@@ -320,6 +320,9 @@ EOM
EOM
}
+ if ($target eq 'git') {
+ print F " \n";
+ }
print F << "EOM";
EOM