Skip to content

Fix source build #49637

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix source build #49637

wants to merge 1 commit into from

Conversation

tmat
Copy link
Member

@tmat tmat commented Jul 2, 2025

No description provided.

@Copilot Copilot AI review requested due to automatic review settings July 2, 2025 18:24
@tmat tmat requested review from arunchndr and a team as code owners July 2, 2025 18:24
Copy link
Contributor

@Copilot 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.

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.

1 participant