Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet watch fails due to missing _CollectWatchItems target #732

Closed
alexrp opened this issue Apr 7, 2022 · 1 comment
Closed

dotnet watch fails due to missing _CollectWatchItems target #732

alexrp opened this issue Apr 7, 2022 · 1 comment

Comments

@alexrp
Copy link
Contributor

alexrp commented Apr 7, 2022

Looks like another case of #671 / #688.

~\source\repos\vezel\zig-sdk\src\sdk  master
$ dotnet watch
dotnet watch ❌ Error(s) finding watch items project file 'sdk.csproj'
dotnet watch ⌚ MSBuild output from target 'GenerateWatchList':
dotnet watch ⌚
dotnet watch ⌚    Build started 07/04/2022 09.33.21.
dotnet watch ⌚         1>Project "C:\Users\alex\source\repos\vezel\zig-sdk\src\sdk\sdk.csproj" on node 1 (GenerateWatchList target(s)).
dotnet watch ⌚         1>Project "C:\Users\alex\source\repos\vezel\zig-sdk\src\sdk\sdk.csproj" (1) is building "C:\Users\alex\source\repos\vezel\zig-sdk\src\sdk\sdk.csproj" (1:2) on node 1 (_CoreCollectWatchItems target(s)).
dotnet watch ⌚       1:2>Project "C:\Users\alex\source\repos\vezel\zig-sdk\src\sdk\sdk.csproj" (1:2) is building "C:\Users\alex\source\repos\vezel\zig-sdk\pkg\cache\nerdbank.gitversioning\3.5.86-alpha\build\PrivateP2PCaching.proj" (2) on node 1 (_CollectWatchItems target(s)).
dotnet watch ⌚         2>C:\Users\alex\source\repos\vezel\zig-sdk\pkg\cache\nerdbank.gitversioning\3.5.86-alpha\build\PrivateP2PCaching.proj : error MSB4057: The target "_CollectWatchItems" does not exist in the project.
dotnet watch ⌚         2>Done Building Project "C:\Users\alex\source\repos\vezel\zig-sdk\pkg\cache\nerdbank.gitversioning\3.5.86-alpha\build\PrivateP2PCaching.proj" (_CollectWatchItems target(s)) -- FAILED.
dotnet watch ⌚         1>Done Building Project "C:\Users\alex\source\repos\vezel\zig-sdk\src\sdk\sdk.csproj" (_CoreCollectWatchItems target(s)) -- FAILED.
dotnet watch ⌚         1>Done Building Project "C:\Users\alex\source\repos\vezel\zig-sdk\src\sdk\sdk.csproj" (GenerateWatchList target(s)) -- FAILED.

dotnet watch ⌚    Build FAILED.
dotnet watch ⌚           "C:\Users\alex\source\repos\vezel\zig-sdk\src\sdk\sdk.csproj" (GenerateWatchList target) (1) ->
dotnet watch ⌚           "C:\Users\alex\source\repos\vezel\zig-sdk\src\sdk\sdk.csproj" (_CoreCollectWatchItems target) (1:2) ->
dotnet watch ⌚           "C:\Users\alex\source\repos\vezel\zig-sdk\pkg\cache\nerdbank.gitversioning\3.5.86-alpha\build\PrivateP2PCaching.proj" (_CollectWatchItems target) (2) ->
dotnet watch ⌚             C:\Users\alex\source\repos\vezel\zig-sdk\pkg\cache\nerdbank.gitversioning\3.5.86-alpha\build\PrivateP2PCaching.proj : error MSB4057: The target "_CollectWatchItems" does not exist in the project.
dotnet watch ⌚        0 Warning(s)
dotnet watch ⌚        1 Error(s)
dotnet watch ⌚    Time Elapsed 00:00:00.30
dotnet watch ⌚
dotnet watch ⌚ Fix the error to continue or press Ctrl+C to exit.
@alexrp
Copy link
Contributor Author

alexrp commented Apr 18, 2022

Also ran into the same issue for GetTargetPath and VSTest (dotnet test) in an unrelated solution.

@AArnott AArnott added this to the v3.5 milestone May 12, 2022
@AArnott AArnott added the bug label May 12, 2022
@AArnott AArnott changed the title MSBuild P2P problem with dotnet watch dotnet watch fails due to missing _CollectWatchItems target May 12, 2022
AArnott added a commit that referenced this issue May 12, 2022
@AArnott AArnott closed this as completed May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants