Skip to content

Conversation

@tmat
Copy link
Member

@tmat tmat commented Jan 16, 2026

TODO: enable tests and update tests to validate 6.0 and 10.0 apps

@tmat tmat requested a review from a team as a code owner January 16, 2026 21:10
Copilot AI review requested due to automatic review settings January 16, 2026 21:10
@tmat tmat requested a review from a team as a code owner January 16, 2026 21:10
@github-actions github-actions bot added the Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, StaticWebAssetsSDK label Jan 16, 2026
@dotnet-policy-service
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.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the pinned target framework monikers (TFMs) used by dotnet-watch components by centralizing version definitions and correcting the version threshold for selecting hot reload agent assemblies.

Changes:

  • Introduces a new TargetFrameworks.props file to centralize pinned TFM definitions for hot reload agent and middleware assemblies
  • Updates the threshold in HotReloadAppModel.cs from .NET 11 to .NET 10 for selecting the appropriate startup hook
  • Removes the unused WatchApp60 test project

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/BuiltInTools/Watch/TargetFrameworks.props New file defining centralized, pinned TFM versions for agent and middleware assemblies
src/BuiltInTools/Watch/RuntimeDependencies.props Imports TargetFrameworks.props and replaces hardcoded TFMs with property references
src/BuiltInTools/Watch/AppModels/HotReloadAppModel.cs Changes version threshold from 11 to 10 for selecting net10.0 vs net6.0 startup hook
src/BuiltInTools/HotReloadAgent/Microsoft.DotNet.HotReload.Agent.Package.csproj Replaces hardcoded net6.0 with AgentTargetFrameworkV6 property
src/BuiltInTools/HotReloadAgent.Host/Microsoft.DotNet.HotReload.Agent.Host.Package.csproj Replaces NetCurrent and net6.0 with AgentTargetFrameworkV10/V6 properties
src/BuiltInTools/DotNetDeltaApplier/Microsoft.Extensions.DotNetDeltaApplier.csproj Replaces NetCurrent and net6.0 with AgentTargetFrameworkV10/V6 properties
src/BuiltInTools/BrowserRefresh/Microsoft.AspNetCore.Watch.BrowserRefresh.csproj Replaces hardcoded net6.0 with MiddlewareTargetFrameworkV6 property
src/BuiltInTools/Web.Middleware/Microsoft.DotNet.HotReload.Web.Middleware.Package.csproj Replaces hardcoded net6.0 with MiddlewareTargetFrameworkV6 property
test/TestAssets/TestProjects/WatchApp60/WatchApp60.csproj Removes unused test project file
test/TestAssets/TestProjects/WatchApp60/Program.cs Removes unused test project file

@tmat tmat changed the title Fixed pinned dotnet-watch TFMs Fixe pinned dotnet-watch TFMs Jan 21, 2026
@tmat tmat changed the title Fixe pinned dotnet-watch TFMs Fix pinned dotnet-watch TFMs Jan 21, 2026
@tmat tmat merged commit d9575fe into dotnet:main Jan 21, 2026
24 of 26 checks passed
@tmat tmat deleted the HRTFM branch January 21, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, StaticWebAssetsSDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants