Skip to content

Add fscCompileNugetForce setting and fix NuGet size check - #188

Merged
onikolaiev merged 3 commits into
masterfrom
develop
Jul 20, 2026
Merged

Add fscCompileNugetForce setting and fix NuGet size check#188
onikolaiev merged 3 commits into
masterfrom
develop

Conversation

@onikolaiev

Copy link
Copy Markdown
Collaborator

This pull request introduces a new configuration option to control whether the D365FSC compiler NuGet packages are freshly downloaded on every build or reused between builds, improving the efficiency of repeated local builds. By default, the original behavior (force fresh download) is preserved, but users can now opt-in to caching for faster iterative development. The implementation updates both the configuration, build logic, and documentation.

Configuration and Build Process Improvements:

  • Added new config option fscCompileNugetForce (default: $true) to control whether NuGet packages are always freshly downloaded or reused between builds. Setting this to $false enables caching for faster local builds (configuration.ps1, settings.md). [1] [2]
  • Updated Invoke-FSCCompile to respect the fscCompileNugetForce setting: NuGet package download and cleanup logic now conditionally reuses or deletes packages based on this flag. [1] [2] [3]

Bug Fixes and Logging:

  • Fixed a bug in Get-FSCPSNuget where the blob size comparison always forced a re-download due to incorrect property usage; now correctly compares the actual file size. Also improved logging for local and blob sizes.
  • Updated log messages to accurately reflect the values being compared during the NuGet package download process.

Documentation Updates:

  • Documented the new fscCompileNugetForce setting in settings.md to guide users on enabling or disabling NuGet package caching.

Splaxi and others added 3 commits July 9, 2026 22:39
- Add fscCompileNugetForce setting (default $true) to keep the original
  force-download behaviour; set $false to reuse already downloaded packages
  and keep them during cleanup for faster repeated local builds.
- Drive the compiler NuGet downloads and packages-folder cleanup off the
  new setting in Invoke-FSCCompile.
- Fix Get-FSCPSNuget size comparison: read the blob size from the PSFSize
  '.Size' property instead of '.Length' (which returned 1 and forced a
  re-download every run), and log the correct local size.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@onikolaiev
onikolaiev enabled auto-merge July 20, 2026 15:27
@onikolaiev
onikolaiev merged commit 6193160 into master Jul 20, 2026
2 checks passed
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