error MSB4018: The "GetOutOfDateItems" task failed unexpectedly
See original GitHub issue1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(2094,5): error MSB4018: The "GetOutOfDateItems" task failed unexpectedly.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(2094,5): error MSB4018: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\user\Desktop\op\sippin-pp-master\Release\Total Le.22B64E67.tlog\CopyFile.read.1.tlog'.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(2094,5): error MSB4018: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(2094,5): error MSB4018: at System.IO.File.InternalDelete(String path, Boolean checkHost)
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(2094,5): error MSB4018: at System.IO.File.Delete(String path)
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(2094,5): error MSB4018: at Microsoft.Build.CPPTasks.GetOutOfDateItems.Execute()
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(2094,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(2094,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:12 (5 by maintainers)
Top Results From Across the Web
error MSB4018: The "GetOutOfDateItems" task failed ...
CppCommon.targets(2094,5): error MSB4018: The "GetOutOfDateItems" task failed unexpectedly. 1>C:\Program Files (x86)\Microsoft Visual Stud.
Read more >[MSB4018] The "GetOutOfDateItems" task failed unexpectedly.
Steps to reproduce: Create a new solution (or pick an existing one), add a c++ console project. And click Build. Result: Microsoft.
Read more >MSB4018 - MSBuild
This error is emitted when a task fails with an unhandled exception. This is generally a sign of a bug in the task....
Read more >error MSB4062: The "GetOutOfDateItems" task could not be ...
Since update 15.8, some of our CMake projects have been failing with error MSB4062 (log below). The issue does not occur on 15.7.6....
Read more >How to fix 'error MSB4018: The "VCMessage" task failed ...
For me, this happened when I clean up my installation. If you are trying to clear your temporal files and go to C:\Program...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey thanks @rainersigwald - It turns out my issue was related to my file path being too long! Apparently having path strings longer than 260 chars can be a problem on Windows. Good to know - I think it’s good to leave this feedback here because I don’t know how to use Visual Studio Feedback. I got this error using MSBuild via CMAKE…
Ok i’ll try opting in and seeing if that fixes for me, thanks