Problem Description
i am getting this error in the build process
Steps To Reproduce
I follow this guide: https://docs.microsoft.com/en-us/windows/dev-environment/javascript/react-native-for-windows
- npx react-native init windows_app_react —template react-native@^0.63.2
- cd windows_app_react
- npx react-native-windows-init —overwrite
- npx react-native run-windows
Expected Results
i expect a react native windows application running in my desktop
CLI version
4.14.0
Environment
System: OS: Windows 10 10.0.22000 CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz Memory: 3.82 GB / 15.86 GB Binaries: Node: 16.9.0 - C:Program Filesnodejsnode.EXE Yarn: 1.22.11 - C:Program Filesnodejsyarn.CMD npm: 7.24.0 - C:Program Filesnodejsnpm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: AllowDevelopmentWithoutDevLicense: Enabled AllowAllTrustedApps: Enabled Versions: 10.0.19041.0 IDEs: Android Studio: Version 2020.3.0.0 AI-203.7717.56.2031.7583922 Visual Studio: 16.11.31605.320 (Visual Studio Community 2019) Languages: Java: 11.0.7 Python: 3.9.7 npmPackages: @react-native-community/cli: Not Found react: 16.13.1 => 16.13.1 react-native: 0.63.2 => 0.63.2 react-native-windows: 0.63.41 => 0.63.41 npmGlobalPackages: *react-native*: Not Found
Target Platform Version
10.0.19041
Target Device(s)
Desktop
Visual Studio Version
Visual Studio 2019
Build Configuration
Debug
Snack, code example, screenshot, or link to a repository
i Verbose: ON
⠋ Auto-linking...
Parsing project...
Found Windows app project, config:
{
folder: 'C:\Users\david\Develop\windows_app_react',
sourceDir: 'windows',
solutionFile: 'windows_app_react.sln',
project: {
projectFile: 'windows_app_react\windows_app_react.vcxproj',
projectName: 'windows_app_react',
projectLang: 'cpp',
projectGuid: '{9431c363-8019-415d-8de7-a4c63c107f3d}'
}
}
Parsing dependencies...
Calculating AutolinkedNativeModules.g.cpp...
Reading AutolinkedNativeModules.g.cpp...
No changes to AutolinkedNativeModules.g.cpp.
Calculating AutolinkedNativeModules.g.props...
Reading AutolinkedNativeModules.g.props...
No changes to AutolinkedNativeModules.g.props.
Calculating AutolinkedNativeModules.g.targets...
Reading AutolinkedNativeModules.g.targets...
No changes to AutolinkedNativeModules.g.targets.
Calculating windows_app_react.sln changes...
√ Auto-linking...
Success: No auto-linking changes necessary. (101ms)
Looking for vswhere at: C:Program Files (x86)Microsoft Visual StudioInstallervswhere.exe
√ Found MSBuild v16.0 at C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildCurrentBin (16.11.31605.320)
MSBuild auto-detection: using msbuild version '16.11.0.36601' from 'C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildCurrentbin'.
All packages listed in packages.config are already installed.
√ Restoring NuGet packages
√ Found Solution: C:UsersdavidDevelopwindows_app_reactwindowswindows_app_react.sln
i Build configuration: Debug
i Build platform: x86
Running MSBuild with args /clp:NoSummary;NoItemAndPropertyList;Verbosity=normal /nologo /maxCpuCount /p:Configuration=Debug /p:Platform=x86 /p:AppxBundle=Never /bl /flp1:errorsonly;logfile=C:UsersdavidAppDataLocalTempmsbuild_8384.err /flp2:warningsonly;logfile=C:UsersdavidAppDataLocalTempmsbuild_8384.wrn /p:RunAutolinkCheck=false
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildCurrentBinmsbuild.exe /nologo /bl /clp:NoSummary;NoItemAndPropertyList;Verbosity=normal /flp1:errorsonly;logfile=C:UsersdavidAppDataLocalTempmsbuild_8384.err /flp2:warningsonly;logfile=C:UsersdavidAppDataLocalTempmsbuild_8384.wrn /maxCpuCount /p:Configuration=Debug /p:Platform=x86 /p:AppxBundle=Never /p:RunAutolinkCheck=false C:UsersdavidDevelopwindows_app_reactwindowswindows_app_react.sln
Build started 12/10/2021 6:18:28 a. m..
1>Project "C:UsersdavidDevelopwindows_app_reactwindowswindows_app_react.sln" on node 1 (default targets).
1>ValidateSolutionConfiguration:
Building solution configuration "Debug|x86".
1>Project "C:UsersdavidDevelopwindows_app_reactwindowswindows_app_react.sln" (1) is building "C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsReactCommonReactCommon.vcxproj.metaproj" (3) on node 1
(default targets).
3>Project "C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsReactCommonReactCommon.vcxproj.metaproj" (3) is building "C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsFollyFoll
y.vcxproj" (5) on node 1 (default targets).
5>ApplyFollyTemporaryPatch:
Copying file from "C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsFollyTEMP_UntilFollyUpdateportabilityBuiltins.h" to "C:UsersdavidDevelopwindows_app_reactnode_modules.follyfolly-2020.09.1
4.00follyportabilityBuiltins.h".
Copying file from "C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsFollyTEMP_UntilFollyUpdatedynamic-inl.h" to "C:UsersdavidDevelopwindows_app_reactnode_modules.follyfolly-2020.09.14.00foll
ydynamic-inl.h".
5>C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: The "VCMessage" task failed unexpectedly. [C:UsersdavidDevelopwindows_app_reactnode_m
odulesreact-native-windowsFollyFolly.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: System.FormatException: Index (zero based) must be greater than or equal to zero and less
than the size of the argument list. [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsFollyFolly.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format
, ParamsArray args) [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsFollyFolly.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args
) [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsFollyFolly.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at System.String.Format(IFormatProvider provider, String format, Object[] args) [C:Use
rsdavidDevelopwindows_app_reactnode_modulesreact-native-windowsFollyFolly.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at Microsoft.Build.Shared.ResourceUtilities.FormatString(String unformatted, Object[] a
rgs) [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsFollyFolly.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.FormatString(String unformatted, Object[
] args) [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsFollyFolly.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.FormatResourceString(String resourceName
, Object[] args) [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsFollyFolly.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.LogErrorWithCodeFromResources(String mes
sageResourceName, Object[] messageArgs) [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsFollyFolly.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at Microsoft.Build.CPPTasks.VCMessage.Execute() [C:UsersdavidDevelopwindows_app_rea
ctnode_modulesreact-native-windowsFollyFolly.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost
.Execute() [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsFollyFolly.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() [C:Us
ersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsFollyFolly.vcxproj]
5>Done Building Project "C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsFollyFolly.vcxproj" (default targets) -- FAILED.
3>Done Building Project "C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsReactCommonReactCommon.vcxproj.metaproj" (default targets) -- FAILED.
1>Project "C:UsersdavidDevelopwindows_app_reactwindowswindows_app_react.sln" (1) is building "C:UsersdavidDevelopwindows_app_reactwindowswindows_app_reactwindows_app_react.vcxproj.metaproj" (2) on node 1 (default targ
ets).
2>Project "C:UsersdavidDevelopwindows_app_reactwindowswindows_app_reactwindows_app_react.vcxproj.metaproj" (2) is building "C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsMicrosoft.ReactNativeMi
crosoft.ReactNative.vcxproj" (4) on node 2 (default targets).
4>Project "C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsMicrosoft.ReactNativeMicrosoft.ReactNative.vcxproj" (4) is building "C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windows
CommonCommon.vcxproj" (6) on node 2 (default targets).
6>C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: The "VCMessage" task failed unexpectedly. [C:UsersdavidDevelopwindows_app_reactnode_m
odulesreact-native-windowsCommonCommon.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: System.FormatException: Index (zero based) must be greater than or equal to zero and less
than the size of the argument list. [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsCommonCommon.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format
, ParamsArray args) [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsCommonCommon.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args
) [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsCommonCommon.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at System.String.Format(IFormatProvider provider, String format, Object[] args) [C:Use
rsdavidDevelopwindows_app_reactnode_modulesreact-native-windowsCommonCommon.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at Microsoft.Build.Shared.ResourceUtilities.FormatString(String unformatted, Object[] a
rgs) [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsCommonCommon.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.FormatString(String unformatted, Object[
] args) [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsCommonCommon.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.FormatResourceString(String resourceName
, Object[] args) [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsCommonCommon.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.LogErrorWithCodeFromResources(String mes
sageResourceName, Object[] messageArgs) [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsCommonCommon.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at Microsoft.Build.CPPTasks.VCMessage.Execute() [C:UsersdavidDevelopwindows_app_rea
ctnode_modulesreact-native-windowsCommonCommon.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost
.Execute() [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsCommonCommon.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() [C:Us
ersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsCommonCommon.vcxproj]
6>Done Building Project "C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsCommonCommon.vcxproj" (default targets) -- FAILED.
4>Project "C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsMicrosoft.ReactNativeMicrosoft.ReactNative.vcxproj" (4) is building "C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windows
JSIUniversalJSI.Universal.vcxproj" (8) on node 3 (default targets).
8>C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: The "VCMessage" task failed unexpectedly. [C:UsersdavidDevelopwindows_app_reactnode_m
odulesreact-native-windowsJSIUniversalJSI.Universal.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: System.FormatException: Index (zero based) must be greater than or equal to zero and less
than the size of the argument list. [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsJSIUniversalJSI.Universal.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format
, ParamsArray args) [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsJSIUniversalJSI.Universal.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args
) [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsJSIUniversalJSI.Universal.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at System.String.Format(IFormatProvider provider, String format, Object[] args) [C:Use
rsdavidDevelopwindows_app_reactnode_modulesreact-native-windowsJSIUniversalJSI.Universal.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at Microsoft.Build.Shared.ResourceUtilities.FormatString(String unformatted, Object[] a
rgs) [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsJSIUniversalJSI.Universal.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.FormatString(String unformatted, Object[
] args) [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsJSIUniversalJSI.Universal.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.FormatResourceString(String resourceName
, Object[] args) [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsJSIUniversalJSI.Universal.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.LogErrorWithCodeFromResources(String mes
sageResourceName, Object[] messageArgs) [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsJSIUniversalJSI.Universal.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at Microsoft.Build.CPPTasks.VCMessage.Execute() [C:UsersdavidDevelopwindows_app_rea
ctnode_modulesreact-native-windowsJSIUniversalJSI.Universal.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost
.Execute() [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsJSIUniversalJSI.Universal.vcxproj]
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() [C:Us
ersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsJSIUniversalJSI.Universal.vcxproj]
8>Done Building Project "C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsJSIUniversalJSI.Universal.vcxproj" (default targets) -- FAILED.
4>Done Building Project "C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsMicrosoft.ReactNativeMicrosoft.ReactNative.vcxproj" (default targets) -- FAILED.
2>Done Building Project "C:UsersdavidDevelopwindows_app_reactwindowswindows_app_reactwindows_app_react.vcxproj.metaproj" (default targets) -- FAILED.
1>Done Building Project "C:UsersdavidDevelopwindows_app_reactwindowswindows_app_react.sln" (default targets) -- FAILED.
Deferred Messages
Detailed Build Summary
======================
============================== Build Hierarchy (IDs represent configurations) =====================================================
Id : Exclusive Time Total Time Path (Targets)
-----------------------------------------------------------------------------------------------------------------------------------
0 : 0.047s 1.066s C:UsersdavidDevelopwindows_app_reactwindowswindows_app_react.sln ()
| 2 : 0.031s 0.674s C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsReactCommonReactCommon.vcxproj.metaproj ()
| . 4 : 0.643s 0.643s C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsFollyFolly.vcxproj ()
. 1 : 0.000s 1.019s C:UsersdavidDevelopwindows_app_reactwindowswindows_app_reactwindows_app_react.vcxproj.metaproj ()
| . 3 : 0.204s 0.988s C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsMicrosoft.ReactNativeMicrosoft.ReactNative.vcxproj ()
| | | 4 : 0.000s 0.000s C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsFollyFolly.vcxproj ()
| | | 5 : 0.737s 0.737s C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsCommonCommon.vcxproj ()
| | | 7 : 0.250s 0.407s C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsReactCommonReactCommon.vcxproj ()
| | | . 4 : 0.000s 0.000s C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsFollyFolly.vcxproj ()
| | . 6 : 0.752s 0.752s C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsJSIUniversalJSI.Universal.vcxproj ()
============================== Node Utilization (IDs represent configurations) ====================================================
Timestamp: 1 2 3 4 Duration Cumulative
-----------------------------------------------------------------------------------------------------------------------------------
637696307089907598: 0 x x x 0.047s 0.047s
637696307090375423: 2 x x x 0.031s 0.078s
637696307090687910: 4 3 x x 0.204s 0.283s ....
637696307092732726: | 5 x x 0.032s 0.314s
637696307093049193: | | 6 7 0.250s 0.564s .....
637696307095549453: | | | x 0.157s 0.721s ...
637696307097119231: 2 | | 7 0.298s 1.019s .....
637696307100100372: | x | | 0.047s 1.066s
637696307100100372: 0 3 x | 0.047s 1.113s
-----------------------------------------------------------------------------------------------------------------------------------
Utilization: 67.6 95.3 100.0 33.2 Average Utilization: 74.0
× Building Solution
× Build failed with message 5>C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(439,5): error MSB4018: The "VCMessage" task failed unexpectedly. [C:UsersdavidDevelopwindows_app_reactnode_modulesreact-native-windowsFollyFolly.vcxproj]. Check your build configuration.
Visual Studio 2017 Professional.
Native C++ project.
After I have changed some of project settings project building ends with this:
Microsoft.CppCommon.targets(770,5): error MSB4018: The "VCMessage" task failed unexpectedly.
Microsoft.CppCommon.targets(770,5): error MSB4018: System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
Microsoft.CppCommon.targets(770,5): error MSB4018: at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
...
PlatformToolSet mentioned here is set.
What’s wrong?
asked Mar 22, 2017 at 15:00
0
This time it is
Configuration Properties -> Linker -> Debugging -> Generate Program Database File
If the file name is omitted (while the neighbour option «Generate Debug Info» is not «No») then VS-2017 finishes building with the error MSB4018. A target is built in this case nevertheless.
answered Mar 22, 2017 at 15:37
KonstantinLKonstantinL
6591 gold badge8 silver badges20 bronze badges
2
Right-click on the project and go to Properties > Linker > General.
Then set «Output File» to «Inherit from parent or project defaults»
answered Mar 22, 2017 at 16:06
Go to the error list window and click on the error and you may get more information. In my case it pointed to a line in Microsoft.CppCommon.targets which was an XML element. In the arguments attribute one value was %(Link.ProgramDatabaseFile) which was not set and causing the problem.
answered May 22, 2017 at 15:28
FredrickFredrick
1,1702 gold badges14 silver badges24 bronze badges
What does this error mean? i was trying to follow a tutorial that i cant seem to link here because im not verified (even though I am) with visual studio 2012 and when i compile i18n i get this error. I hope using the latest version of visual studio
isn’t the cause. I’m having trouble getting information on this error though and figured that asking here might help.
1>—— Build started: Project: common, Configuration: Debug Win32 ——
1>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: The «VCMessage» task failed unexpectedly.
1>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
1>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
1>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: at System.String.Format(IFormatProvider provider, String format, Object[] args)
1>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: at Microsoft.Build.Shared.ResourceUtilities.FormatString(String unformatted, Object[] args)
1>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.FormatString(String unformatted, Object[] args)
1>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.FormatResourceString(String resourceName, Object[] args)
1>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.LogWarningWithCodeFromResources(String messageResourceName, Object[] messageArgs)
1>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: at Microsoft.Build.CPPTasks.VCMessage.Execute()
1>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
1>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
2>—— Build started: Project: i18n, Configuration: Debug Win32 ——
2>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: The «VCMessage» task failed unexpectedly.
2>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
2>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
2>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: at System.String.Format(IFormatProvider provider, String format, Object[] args)
2>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: at Microsoft.Build.Shared.ResourceUtilities.FormatString(String unformatted, Object[] args)
2>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.FormatString(String unformatted, Object[] args)
2>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.FormatResourceString(String resourceName, Object[] args)
2>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.LogWarningWithCodeFromResources(String messageResourceName, Object[] messageArgs)
2>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: at Microsoft.Build.CPPTasks.VCMessage.Execute()
2>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
2>C:Program FilesMSBuildMicrosoft.Cppv4.0V110Microsoft.CppBuild.targets(1137,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
========== Build: 0 succeeded, 2 failed, 1 up-to-date, 0 skipped ==========
-
Moved by
Monday, March 18, 2013 2:19 AM
Move to a more appropriate forum.
Hi all, i have a small build problem when building the sciter hello world example from the main website.
i am pretty sure that is is not sciter that is the issue, as a quick google check shows it may be related to the platform toolset version, the full error is as follows.
1>—— Build started: Project: helloworld, Configuration: Debug Win32 ——
1>helloworld.cpp
1>C:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDEVCVCTargetsMicrosoft.CppBuild.targets(1198,5): error MSB4018: The “VCMessage” task failed unexpectedly.
1>C:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDEVCVCTargetsMicrosoft.CppBuild.targets(1198,5): error MSB4018: System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
1>C:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDEVCVCTargetsMicrosoft.CppBuild.targets(1198,5): error MSB4018: at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
1>C:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDEVCVCTargetsMicrosoft.CppBuild.targets(1198,5): error MSB4018: at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
1>C:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDEVCVCTargetsMicrosoft.CppBuild.targets(1198,5): error MSB4018: at System.String.Format(IFormatProvider provider, String format, Object[] args)
1>C:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDEVCVCTargetsMicrosoft.CppBuild.targets(1198,5): error MSB4018: at Microsoft.Build.Shared.ResourceUtilities.FormatString(String unformatted, Object[] args)
1>C:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDEVCVCTargetsMicrosoft.CppBuild.targets(1198,5): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.FormatString(String unformatted, Object[] args)
1>C:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDEVCVCTargetsMicrosoft.CppBuild.targets(1198,5): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.FormatResourceString(String resourceName, Object[] args)
1>C:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDEVCVCTargetsMicrosoft.CppBuild.targets(1198,5): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.LogWarningWithCodeFromResources(String messageResourceName, Object[] messageArgs)
1>C:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDEVCVCTargetsMicrosoft.CppBuild.targets(1198,5): error MSB4018: at Microsoft.Build.CPPTasks.VCMessage.Execute()
1>C:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDEVCVCTargetsMicrosoft.CppBuild.targets(1198,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
1>C:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDEVCVCTargetsMicrosoft.CppBuild.targets(1198,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
1>Done building project “helloworld.vcxproj” — FAILED.
i hope someone else has come across this and will be good enough to help me resolve it, i have checked the platform toolset version and it appears to be fine (V141) and stated in the solution settings options.
I am very much a begginer to c++ and programming in general so this has me a bit stumped
VS2017 Pro (latest Update), Win 10, Xeon X5687 (in case its usefull)
tnx !
- Remove From My Forums
-
Вопрос
-
I am trying to build a MFC application on visual studio 2010 with windows 7 as my OS. It shows some error on line 990 of Microsoft.CppBuilds.targets
I am getting the following error:
Error 358 error MSB4018: The «VCMessage» task failed unexpectedly.
System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
at System.String.Format(IFormatProvider provider, String format, Object[] args)
at Microsoft.Build.Shared.ResourceUtilities.FormatString(String unformatted, Object[] args)
at Microsoft.Build.Utilities.TaskLoggingHelper.FormatString(String unformatted, Object[] args)
at Microsoft.Build.Utilities.TaskLoggingHelper.FormatResourceString(String resourceName, Object[] args)
at Microsoft.Build.Utilities.TaskLoggingHelper.LogWarningWithCodeFromResources(String messageResourceName, Object[] messageArgs)
at Microsoft.Build.CPPTasks.VCMessage.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult) C:Program
FilesMSBuildMicrosoft.Cppv4.0Microsoft.CppBuild.targets 990 6 WhiteboardIt-
Перемещено
12 мая 2010 г. 8:12
(From:MSDN, TechNet, and Expression Profile Feedback)
-
Перемещено
Вот что я вижу:
1>------ Build started: Project: xxx (xxxxxx), Configuration: Debug Win32 ------
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V120Microsoft.Cpp.Platform.targets(64,5): error MSB4018: The "VCMessage" task failed unexpectedly.
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V120Microsoft.Cpp.Platform.targets(64,5): error MSB4018: System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V120Microsoft.Cpp.Platform.targets(64,5): error MSB4018: at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V120Microsoft.Cpp.Platform.targets(64,5): error MSB4018: at System.String.Format(IFormatProvider provider, String format, Object[] args)
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V120Microsoft.Cpp.Platform.targets(64,5): error MSB4018: at Microsoft.Build.Shared.ResourceUtilities.FormatString(String unformatted, Object[] args)
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V120Microsoft.Cpp.Platform.targets(64,5): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.FormatString(String unformatted, Object[] args)
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V120Microsoft.Cpp.Platform.targets(64,5): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.FormatResourceString(String resourceName, Object[] args)
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V120Microsoft.Cpp.Platform.targets(64,5): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.LogErrorWithCodeFromResources(String messageResourceName, Object[] messageArgs)
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V120Microsoft.Cpp.Platform.targets(64,5): error MSB4018: at Microsoft.Build.CPPTasks.VCMessage.Execute()
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V120Microsoft.Cpp.Platform.targets(64,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V120Microsoft.Cpp.Platform.targets(64,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
А решения, перечисленные в результатах поиска Google и SO, не доставляют (удаление конечных косых черт, возврат к путям $(OutDir)
или $(TargetDir)
по умолчанию и т. д.)
Контекст
Это касается нескольких проектов, которые были перенесены с MSVC2012. Другие проекты с тем же макетом проекта / решения, перенесенные из той же среды MSVC2012, не мигнули, в то время как некоторые выявляют эту ошибку, которая препятствует успешному результату компиляции / сборки.
2 ответа
Лучший ответ
Исправление
Ошибка возникла из-за того, что поле конфигурации проекта Platform Toolset
было пустым . (В файле проекта .vcproj
здесь должно быть указано значение, например v120
)
< Сильный > До :
<PlatformToolset>
</PlatformToolset>
После :
<PlatformToolset>v120</PlatformToolset>
Это значение можно установить в DevStudio через панель свойств проекта> Свойства конфигурации> Общие> Набор инструментов платформы :: выберите одно из значений в раскрывающемся списке.
Как это было раскрыто:
-
создать пустой новый проект в MSVC2013 того же типа
-
используйте Beyond Compare (или другой инструмент визуального сравнения, который может легко редактировать сравниваемые файлы, копируя их фрагменты), чтобы скопировать набор файлов и протестировать (путем перезагрузки в DevStudio и запуска там процесса
build
). -
следующую копию по битам настроек проекта (и продублируйте блоки, если ваш исходный проект имеет несколько целей сборки, таких как у меня (Win32 / x64 / Itanium)), проверьте снова.
-
промойте и повторяйте описанные выше действия, пока ваш «новый» проект не покажет ту же проблему, что и старый. Сузьте до минимального подмножества XML в файле
.vcproj
.
Связанные вопросы SO и блоги, которые были испытаны до всего этого:
- Как исправить ошибку MSB4018 в Visual Studio 2010?
- https : //connect.microsoft.com/VisualStudio/feedback/details/757884/msb4018-with-a-backslash-after-target-name-in-project-settings (Ну, проблема все еще существует .. . только может быть в несколько ином заклинании. Моя проблема произошла на MSVC2013 со всеми обновлениями по состоянию на март 2015 г.)
- http://marlowa.blogspot.nl/2013/09/a-nasty-net-error-in-visual-studio-2010.html
Вывод: если вы столкнетесь с этой проблемой, проверьте все записи конфигурации вашего проекта. А когда дело доходит до решающей, раскройте проблему с помощью описанного выше процесса сравнения и проверки, разделяй и властвуй.
18
Community
23 Май 2017 в 12:16
В Visual Studio 2013 эта ошибка возникает при попытке скомпилировать программу, созданную в проекте с неверными настройками. Для меня это произошло, когда я очищал свою установку. Если вы пытаетесь очистить свои временные файлы и перейти в C: Program Files (x86) Microsoft Visual Studio Installer resources app layout и запустить программу InstallCleanup.exe, похоже, удаляются временные файлы, но также и ваши настройки. В частности, тип проекта, который вы создаете.
Как воспроизвести ошибку:
Если вы выберете «Новый проект», отобразятся некоторые параметры: 1) Atl 2) CLR 3) Общие 4) Win 32. Вы должны выбрать Win 32, а затем выбрать консоль Win32 или проект Win32. По умолчанию он выбирает что-то еще, тогда после создания проекта вы поймете, что Свойства -> Компоновщик -> Система -> Подсистема пусто, хотя должно быть / SUBSYSTEM: CONSOLE (или / SUBSYSTEM: WIN32).
После исправления этого и попытки скомпилировать его выдаст ошибку MSB4018.
Таким образом, решение состоит в том, чтобы снова создать проект и убедиться, что параметры установлены правильно, как описано.
0
Gustavo Rodríguez
15 Июл 2020 в 15:27
MSB4018 error after install and tried to use a VS (Read 2992 times)
P.Ferenc
Newbies Posts: 6 Joined: Apr 1st, 2018 |
MSB4018 error after install and tried to use a VS |
Print Post |
Hi I tried tuo install and use a vmicro licensed version, but I cant finish with working system. I got an «empty» test.ino -> ok, I tried to run/compile it but receive a: output and got a Severity Code Description Project File Line Suppression State Error… How can I get a working system or what step I missed to do..? Thanks your help! Best regards… |
||
|
|
Tim@Visual Micro Administrator Posts: 11684 Joined: Apr 10th, 2010 |
Re: MSB4018 error after install and tried to use a VS |
Print Post |
These are visual studio build errors which means that visual micro is not attempting a build When you use file>open arduino project it creates an example project for you that adheres to THREE simple rules The following must all have the same name: Folder name The first two are also required by the arduino ide. Your code …. You have test.ino in a project called «Fade» I assume you originally created a project called «Test». Then you renamed the project to «Fade» but that doesn’t comply to the rules. Fix Rename the project back to «test». So you have a folder called test, a project called test and an ino called test. If you want to rename a project then rename the .ino and visual micro will attempt to follow the rules for you. However you can rename things manually but maybe easier to delete the vcxproj and .sln from the project folder and then rename the ino and folder. Then use file>open>arduino project again |
||
|
WWW
|
P.Ferenc
Newbies Posts: 6 Joined: Apr 1st, 2018 |
Re: MSB4018 error after install and tried to use a VS |
Print Post |
Thanks you fast answer… Best regards, Ferenc Pereszlenyi 1>—— Build started: Project: test2_180402, Configuration: Debug Win32 —— Severity Code Description Project File Line Suppression State (I tried to attach a screenshot, but I havent rights to do it) |
||
|
|
P.Ferenc
Newbies Posts: 6 Joined: Apr 1st, 2018 |
Re: MSB4018 error after install and tried to use a VS |
Print Post |
May be I found a workaround… I did a following: After restarted a VS and created a new ARduino prject at vMicro->New Adruino Project then I can build from menupoint vMicro->Build… The next question how can I debug with btreakpoints and etc. but first I look trough the documentation… |
||
|
|
Tim@Visual Micro Administrator Posts: 11684 Joined: Apr 10th, 2010 |
Re: MSB4018 error after install and tried to use a VS |
Print Post |
Interesting. Sounds like your VS needed repair but nice you found a solution. It’s possible that some other extension was preventing visual micro from working. The reset might have uninstalled it. |
||
« Last Edit: Apr 2nd, 2018 at 11:43am by Tim@Visual Micro » |
||
|
WWW
|