error MSB4018: The "GetOutOfDateItems" task failed unexpectedly

See original GitHub issue
1>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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
TomzBenchcommented, Dec 4, 2019

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…

0reactions
TomzBenchcommented, Dec 4, 2019

Ok i’ll try opting in and seeing if that fixes for me, thanks

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found