Skip to content

Fix source build#49637

Closed
tmat wants to merge 1 commit intodotnet:mainfrom
tmat:FixSourceBuild
Closed

Fix source build#49637
tmat wants to merge 1 commit intodotnet:mainfrom
tmat:FixSourceBuild

Conversation

@tmat
Copy link
Copy Markdown
Member

@tmat tmat commented Jul 2, 2025

No description provided.

Copilot AI review requested due to automatic review settings July 2, 2025 18:24
@tmat tmat requested review from a team and arunchndr as code owners July 2, 2025 18:24
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 enables building from source by specifying a compatible targeting pack version when DotNetBuildSourceOnly is true, and broadens test applicability by removing platform-specific constraints.

  • Added <TargetingPackVersion> conditionals in two .csproj files to pin .NETCore.App.Ref for source builds.
  • Updated tests to use [Fact] instead of [PlatformSpecificFact], removing Windows-only restrictions and related exit-code comments.

Reviewed Changes

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

File Description
test/dotnet-watch.Tests/HotReload/ApplyDeltaTests.cs Replaced Windows-only [PlatformSpecificFact] with [Fact] and removed exit-code comments.
test/dotnet-watch.Tests/CommandLine/ProgramTests.cs Changed [PlatformSpecificFact] to [Fact] for cross-platform test.
src/BuiltInTools/HotReloadAgent/Microsoft.DotNet.HotReload.Agent.Package.csproj Added conditional <TargetingPackVersion> for source builds.
src/BuiltInTools/DotNetDeltaApplier/Microsoft.Extensions.DotNetDeltaApplier.csproj Added conditional <TargetingPackVersion> for .NET 6.0 source builds.

@tmat tmat force-pushed the FixSourceBuild branch from bbc92f0 to 317a92e Compare July 2, 2025 18:25
@tmat tmat closed this Jul 7, 2025
@tmat tmat deleted the FixSourceBuild branch November 20, 2025 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants