Skip to content

Target DotNetDeltaApplier to net6.0#49543

Merged
tmat merged 1 commit intodotnet:mainfrom
tmat:net6
Jun 28, 2025
Merged

Target DotNetDeltaApplier to net6.0#49543
tmat merged 1 commit intodotnet:mainfrom
tmat:net6

Conversation

@tmat
Copy link
Copy Markdown
Member

@tmat tmat commented Jun 24, 2025

Targeting net6.0 allows us to use more APIs that are not available in netstandard2.1.
Source build actually has 6.0 ref pack, so we can target 6.0 instead of netstandard2.1.

@tmat tmat marked this pull request as ready for review June 26, 2025 16:45
Copilot AI review requested due to automatic review settings June 26, 2025 16:45
@tmat
Copy link
Copy Markdown
Member Author

tmat commented Jun 26, 2025

@DustinCampbell ptal

Copy link
Copy Markdown
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 updates the project target frameworks from netstandard2.1 to net6.0 to leverage newer APIs available in .NET 6.0 and later. Key changes include:

  • Updating target frameworks and output paths in dotnet-watch.csproj and Microsoft.Extensions.DotNetDeltaApplier.csproj.
  • Adjusting the framework mapping logic in HotReloadAppModel.cs.
  • Changing Microsoft.DotNet.HotReload.Agent.Package.csproj to target net6.0.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/BuiltInTools/dotnet-watch/dotnet-watch.csproj Updated TargetFramework and TargetPath to reflect net6.0 usage
src/BuiltInTools/dotnet-watch/HotReload/AppModels/HotReloadAppModel.cs Modified framework mapping to return net6.0 for .NET 6.0+ cases
src/BuiltInTools/HotReloadAgent/Microsoft.DotNet.HotReload.Agent.Package.csproj Updated TargetFramework from netstandard2.1 to net6.0
src/BuiltInTools/DotNetDeltaApplier/Microsoft.Extensions.DotNetDeltaApplier.csproj Adjusted multi-target frameworks to net6.0;net10.0 and updated associated comments
Comments suppressed due to low confidence (3)

src/BuiltInTools/dotnet-watch/dotnet-watch.csproj:70

  • Confirm that the new TargetPath and framework settings are consistent with any tooling or scripts that reference this output location.
      <SetTargetFramework>TargetFramework=net6.0</SetTargetFramework>

src/BuiltInTools/dotnet-watch/HotReload/AppModels/HotReloadAppModel.cs:29

  • Ensure that mapping all .NET 6.0+ frameworks to 'net6.0' aligns with the intended behavior of the Hot Reload implementation.
            "net6.0" or "net7.0" or "net8.0" or "net9.0" => "net6.0",

src/BuiltInTools/DotNetDeltaApplier/Microsoft.Extensions.DotNetDeltaApplier.csproj:12

  • [nitpick] Verify that the updated multi-target framework setting and the revised comment sufficiently guide future changes, particularly regarding dependencies on dotnet-watch and HotReloadAppModel.TryGetStartupHookPath.
    <TargetFrameworks>net6.0;net10.0</TargetFrameworks>

@tmat tmat merged commit 5818402 into dotnet:main Jun 28, 2025
26 checks passed
@tmat tmat deleted the net6 branch June 28, 2025 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants