Skip to content

NuGet packaging of DesignTime DLL for F# provider#583

Merged
xperiandri merged 2 commits into
devfrom
bug/type-provider
Jun 14, 2026
Merged

NuGet packaging of DesignTime DLL for F# provider#583
xperiandri merged 2 commits into
devfrom
bug/type-provider

Conversation

@xperiandri

Copy link
Copy Markdown
Collaborator

Added MSBuild target to ensure DesignTime DLL is included in NuGet package, working around F# SDK limitations with ProjectReference-based providers. Removed obsolete target for cleaning NuGet pack input and updated conditions for consistency.

@xperiandri

Copy link
Copy Markdown
Collaborator Author

@T-Gro, I discovered that the design-time DLL is no longer packaged into the NuGet package.
Could you confirm that this solution is the right way?

Copilot AI left a comment

Copy link
Copy Markdown

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 adjusts NuGet packaging for the FSharp.Data.GraphQL.Client type provider so the *.DesignTime.dll is included in the produced package, working around limitations in the F# SDK/MSBuild packing flow when a runtime project references its design-time project via ProjectReference.

Changes:

  • Adds a custom target hooked via TargetsForTfmSpecificContentInPackage to inject the DesignTime DLL into the package.
  • Removes the previously-used RemoveUnnecessaryNuGetPackInput target and cleans up NuGet-related conditions for consistency.
  • Updates ProjectReference / PackageReference conditions to use quoted $(IsNuGet) comparisons.

Comment on lines +46 to +49
<MSBuild Projects="@(_DesignTimeProjectRef)"
Targets="GetTargetPath"
Properties="Configuration=$(Configuration);TargetFramework=netstandard2.0">
<Output TaskParameter="TargetOutputs" ItemName="_DesignTimeDllPath" />
Comment thread src/FSharp.Data.GraphQL.Client/FSharp.Data.GraphQL.Client.fsproj Outdated
@xperiandri xperiandri force-pushed the bug/type-provider branch 3 times, most recently from 95a0820 to 79bdced Compare June 13, 2026 20:02
Added MSBuild target to ensure DesignTime DLL is included in NuGet package, working around F# SDK limitations with ProjectReference-based providers. Removed obsolete target for cleaning NuGet pack input and updated conditions for consistency.
@github-actions

Copy link
Copy Markdown

Test Results

    3 files      3 suites   9m 58s ⏱️
  442 tests   437 ✅  5 💤 0 ❌
1 326 runs  1 311 ✅ 15 💤 0 ❌

Results for commit 56419ea.

@xperiandri xperiandri enabled auto-merge (rebase) June 14, 2026 01:33
@xperiandri xperiandri disabled auto-merge June 14, 2026 01:33
@xperiandri xperiandri merged commit e643b8d into dev Jun 14, 2026
5 checks passed
@xperiandri xperiandri deleted the bug/type-provider branch June 14, 2026 01:34
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.

2 participants