This repository has been archived by the owner on Nov 14, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated example after fix in example here: aspnet/DotNetTools#358 (co…
- Loading branch information
Showing
6 changed files
with
17 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/TextFilesCopy | ||
obj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Content of File1.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Content of File2.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,12 @@ | ||
|
||
An attempt to get 'dotnet watch' running against a custom MSBuild project. | ||
dotnet watch example | ||
==================== | ||
|
||
Open a command prompt in the root folder (or open CommandPrompt.bat); | ||
Open a command prompt in the Build folder (or open CommandPrompt.bat). | ||
|
||
Type: dotnet msbuild Build\Build.proj | ||
Type: | ||
dotnet restore | ||
dotnet watch msbuild | ||
|
||
The folder TextFilesCopy is created, with a copy of the files from the folder TextFiles. | ||
|
||
Type: dotnet watch msbuild Build\Build.proj | ||
|
||
I get the error: No executable found matching command "dotnet-watch" | ||
|
||
I added the following to the Build.proj: | ||
|
||
<ItemGroup> | ||
<DotNetCliToolReference Include="Microsoft.DotNet.Watcher.Tools" Version="2.0.0" /> | ||
</ItemGroup> | ||
|
||
Type: dotnet restore Build\Build.proj | ||
|
||
I get the error: Build\Build.proj : error MSB4057: The target "Restore" does not exist in the project | ||
|
||
I added the following to the Build.proj: | ||
|
||
<Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets"/> | ||
|
||
Type: dotnet restore Build\Build.project | ||
|
||
I get the 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] | ||
Modifying files in the TextFiles folder will automatically copy changes to the TextFilesCopy folder. | ||
|