-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Better organize dotnet-watch source files and clean up #49524
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
Conversation
Thanks for your PR, @@tmat. |
5bcc521
to
9371aab
Compare
/// <param name="searchBase">The base directory to search</param> | ||
/// <param name="project">The filename of the project. Can be null.</param> | ||
/// </summary> | ||
public static string FindMsBuildProject(string searchBase, string? project) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to Program.cs
|
||
namespace Microsoft.DotNet.Watch; | ||
|
||
internal class ReporterTraceListener(IReporter reporter, string emoji) : TraceListener |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused
@@ -342,5 +342,27 @@ public async Task ProjectGraphLoadFailure() | |||
App.AssertOutputContains(@"dotnet watch ⌚ Failed to load project graph."); | |||
App.AssertOutputContains($"dotnet watch ❌ The project file could not be loaded. Could not find a part of the path '{Path.Combine(testAsset.Path, "AppWithDeps", "NonExistentDirectory", "X.csproj")}'"); | |||
} | |||
|
|||
[PlatformSpecificFact(TestPlatforms.Windows)] // "https://github.com/dotnet/sdk/issues/49307") | |||
public async Task ListsFiles() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved
|
||
namespace Microsoft.DotNet.Watch.UnitTests; | ||
|
||
internal class TestBuildEvaluator(DotNetWatchContext context, MSBuildFileSetFactory factory) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved
@@ -115,12 +115,5 @@ public async Task ProcessAsync_SetsEvaluationRequired_IfMSBuildFileChanges_ButIs | |||
|
|||
Assert.True(evaluator.RequiresRevaluation); | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved
@@ -103,28 +103,6 @@ public async Task ChangeExcludedFile() | |||
Assert.NotSame(fileChanged, finished); | |||
} | |||
|
|||
[PlatformSpecificFact(TestPlatforms.Windows)] // "https://github.com/dotnet/sdk/issues/49307") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved
@DustinCampbell ptal |
Separates
--no-hot-reload
watcher from Hot Reload. There is no need for a shared subclass.Prepares for elimination of
MSBuildFileSetFactory
from Hot Reload watcher.New layout:

