You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.
I get the error No executable found matching command "dotnet-watch"
I added the following to my .proj file: <ItemGroup> <DotNetCliToolReference Include="Microsoft.DotNet.Watcher.Tools" Version="2.0.0" /> </ItemGroup>
Then I ran dotnet restore ...
I get the error error MSB4057: The target "Restore" does not exist in the project
I added the following line to my .proj file (taken from the WatchMultupleProjects sample): <Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets"/>
Then I ran dotnet restore ...
Now I get the more cryptic error: C:\Program Files\dotnet\sdk\2.0.2\NuGet.targets(102,5): error : Value cannot be null.\r [C:\work\scratch\dotnet\WatchCustomProject\Build\Build.proj] C:\Program Files\dotnet\sdk\2.0.2\NuGet.targets(102,5): error : Parameter name: key [C:\work\scratch\dotnet\WatchCustomProject\Build\Build.proj]
I tried cloning the DotNetTools repo, and ran dotnet restore watch.proj in the WatchMultipleProjects folder and got the same error.
Is this a bug? Or am I missing something?
The text was updated successfully, but these errors were encountered:
I updated the samples to work with the 2.0.0 SDK. NuGet made some changes to their internal targets that were causing the "Valeu cannot be null" error. 1cc289c
Give it a shot and let me know if it doesn't work. We can re-open if it doesn't.
Side note: this sample is sort of a hack until we can implement #319
I am trying to watch multiple projects. An example repo is here: https://github.com/FlukeFan/WatchCustomProject
When I try to run
dotnet watch ...
I get the error
No executable found matching command "dotnet-watch"
I added the following to my
.proj
file:<ItemGroup>
<DotNetCliToolReference Include="Microsoft.DotNet.Watcher.Tools" Version="2.0.0" />
</ItemGroup>
Then I ran
dotnet restore ...
I get the error
error MSB4057: The target "Restore" does not exist in the project
I added the following line to my
.proj
file (taken from the WatchMultupleProjects sample):<Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets"/>
Then I ran
dotnet restore ...
Now I get the more cryptic error:
C:\Program Files\dotnet\sdk\2.0.2\NuGet.targets(102,5): error : Value cannot be null.\r [C:\work\scratch\dotnet\WatchCustomProject\Build\Build.proj] C:\Program Files\dotnet\sdk\2.0.2\NuGet.targets(102,5): error : Parameter name: key [C:\work\scratch\dotnet\WatchCustomProject\Build\Build.proj]
I tried cloning the DotNetTools repo, and ran
dotnet restore watch.proj
in the WatchMultipleProjects folder and got the same error.Is this a bug? Or am I missing something?
The text was updated successfully, but these errors were encountered: