Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 7, 2026

Every build regenerates AssemblySharedInfo.cs with a timestamp-based version, forcing all projects to rebuild even when no code changes.

Changes

  • AssemblyInfoGenerator.csproj: Added RegenerateAssemblyInfo property (defaults to false) to conditionally run T4 template transformation
  • CI Workflows: Updated all build commands to pass /p:RegenerateAssemblyInfo=true to maintain timestamp-based versioning in CI
    • build_dynamo_all.yml
    • build_dynamo_core.yml (3 jobs)
    • dynamo_bin_diff.yml (2 builds)
  • README.md: Documented incremental build behavior and manual version regeneration

Usage

Local development (incremental):

msbuild src\Dynamo.All.sln /p:Configuration=Release

Official builds (with timestamp):

msbuild src\Dynamo.All.sln /p:Configuration=Release /p:RegenerateAssemblyInfo=true

CI builds automatically regenerate version information. Local builds skip regeneration for fast incremental compilation.

Original prompt

When I build the solution, it always build all the projects even though I just built it minutes ago, is there any optimization can be done to only built the projects touched with its dependencies?


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits January 7, 2026 20:39
…eneration conditional

Co-authored-by: QilongTang <3942418+QilongTang@users.noreply.github.com>
Co-authored-by: QilongTang <3942418+QilongTang@users.noreply.github.com>
Co-authored-by: QilongTang <3942418+QilongTang@users.noreply.github.com>
Copilot AI changed the title [WIP] Optimize build process for touched projects Enable incremental builds by making assembly version generation conditional Jan 7, 2026
Copilot AI requested a review from QilongTang January 7, 2026 20:46
@QilongTang QilongTang changed the title Enable incremental builds by making assembly version generation conditional [Build Optimization] Enable incremental builds by making assembly version generation conditional Jan 12, 2026
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