Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
merged 3 commits into from
Jun 25, 2025
Merged

Conversation

tmat
Copy link
Member

@tmat tmat commented Jun 22, 2025

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:
image
image

@github-actions github-actions bot added the Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch label Jun 22, 2025
Copy link
Contributor

Thanks for your PR, @@tmat.
To learn about the PR process and branching schedule of this repo, please take a look at the SDK PR Guide.

@tmat tmat changed the title Reorg Better organize dotnet-watch source files and clean up Jun 25, 2025
/// <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)
Copy link
Member Author

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
Copy link
Member Author

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()
Copy link
Member Author

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)
Copy link
Member Author

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);
}

Copy link
Member Author

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")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved

@tmat tmat marked this pull request as ready for review June 25, 2025 18:50
@tmat tmat requested review from arunchndr and a team as code owners June 25, 2025 18:50
@tmat
Copy link
Member Author

tmat commented Jun 25, 2025

@DustinCampbell ptal

@tmat tmat enabled auto-merge (squash) June 25, 2025 20:37
@tmat tmat merged commit af64d64 into dotnet:main Jun 25, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants