diff --git a/native/templates/js-template-link/frameworks/runtime-src/proj.win32/HelloJavascript.sln b/native/templates/js-template-link/frameworks/runtime-src/proj.win32/HelloJavascript.sln
index 496dbd6e8f..17848a3245 100755
--- a/native/templates/js-template-link/frameworks/runtime-src/proj.win32/HelloJavascript.sln
+++ b/native/templates/js-template-link/frameworks/runtime-src/proj.win32/HelloJavascript.sln
@@ -11,11 +11,11 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloJavascript", "HelloJav
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "External", "External", "{8C6B0381-B325-4D7F-B1BB-474ABACE46AC}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libSpine", "..\..\cocos2d-x\cocos\editor-support\spine\proj.win32\libSpine.vcxproj", "{B7C2A162-DEC9-4418-972E-240AB3CBFCAE}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libSpine", "$(COCOS_X_ROOT)\cocos2d-x\cocos\editor-support\spine\proj.win32\libSpine.vcxproj", "{B7C2A162-DEC9-4418-972E-240AB3CBFCAE}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcocos2d", "..\..\cocos2d-x\cocos\2d\libcocos2d.vcxproj", "{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcocos2d", "$(COCOS_X_ROOT)\cocos2d-x\cocos\2d\libcocos2d.vcxproj", "{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libjscocos2d", "..\..\cocos2d-x\cocos\scripting\js-bindings\proj.win32\libjscocos2d.vcxproj", "{39379840-825A-45A0-B363-C09FFEF864BD}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libjscocos2d", "$(COCOS_X_ROOT)\cocos2d-x\cocos\scripting\js-bindings\proj.win32\libjscocos2d.vcxproj", "{39379840-825A-45A0-B363-C09FFEF864BD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
diff --git a/native/templates/js-template-link/frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj b/native/templates/js-template-link/frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj
index ce343ff9ac..0d5b2ae0ca 100755
--- a/native/templates/js-template-link/frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj
+++ b/native/templates/js-template-link/frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj
@@ -36,13 +36,13 @@
-
-
+
+
-
-
+
+
@@ -120,7 +120,7 @@
- xcopy "$(ProjectDir)..\..\cocos2d-x\cocos\scripting\js-bindings\script" "$(OutDir)\script" /D /E /I /F /Y
+ xcopy "$(COCOS_X_ROOT)\cocos2d-x\cocos\scripting\js-bindings\script" "$(OutDir)\script" /D /E /I /F /Y
xcopy "$(ProjectDir)..\..\..\src" "$(OutDir)\src" /D /E /I /F /Y
xcopy "$(ProjectDir)..\..\..\res" "$(OutDir)\res" /D /E /I /F /Y
copy "$(ProjectDir)..\..\..\main.js" "$(OutDir)\" /Y
@@ -193,7 +193,7 @@ copy "$(ProjectDir)..\..\..\project.json" "$(OutDir)\" /Y
-
+
{39379840-825a-45a0-b363-c09ffef864bd}
diff --git a/native/templates/js-template-link/frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj.user b/native/templates/js-template-link/frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj.user
new file mode 100644
index 0000000000..bc2c507e26
--- /dev/null
+++ b/native/templates/js-template-link/frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj.user
@@ -0,0 +1,11 @@
+
+
+
+ $(OutDir)
+ WindowsLocalDebugger
+
+
+ $(OutDir)
+ WindowsLocalDebugger
+
+
\ No newline at end of file
diff --git a/native/templates/js-template-link/frameworks/runtime-src/proj.win32/build-cfg.json b/native/templates/js-template-link/frameworks/runtime-src/proj.win32/build-cfg.json
index 3aa9a0268e..72ddb8a1cc 100755
--- a/native/templates/js-template-link/frameworks/runtime-src/proj.win32/build-cfg.json
+++ b/native/templates/js-template-link/frameworks/runtime-src/proj.win32/build-cfg.json
@@ -17,7 +17,7 @@
"to": ""
},
{
- "from": "../../cocos2d-x/cocos/scripting/js-bindings/script",
+ "from": "${DIR_TO_COCOS_X_ROOT}/cocos2d-x/cocos/scripting/js-bindings/script",
"to": "script"
}
]