Skip to content

Refine new project scaffolding. #50930

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 2 commits into
base: main
Choose a base branch
from

Conversation

haiyuazhang
Copy link
Contributor

@haiyuazhang haiyuazhang commented Jun 27, 2025

The purpose of this change is to let management generator has the ability to add dedicated compile include files.

@Copilot Copilot AI review requested due to automatic review settings June 27, 2025 06:23
@github-actions github-actions bot added Client This issue is related to a non-management package CodeGen Issues that relate to code generation labels Jun 27, 2025
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

Refines the new project scaffolding to consolidate compile-include logic, cache path-segment calculations, and improve the helper method’s interface.

  • Introduces a cached PathSegmentCount property for directory-depth computation
  • Extracts compile-include assembly into a new BuildCompileIncludes override
  • Updates GetCompileInclude signature with an optional parameter and XML documentation
Comments suppressed due to low confidence (1)

eng/packages/http-client-csharp/generator/Azure.Generator/src/Primitives/NewAzureProjectScaffolding.cs:138

  • Consider adding unit tests for BuildCompileIncludes to verify include lists under different scenarios (API key auth enabled, operations present, long-running operations present).
        protected override IReadOnlyList<CSharpProjectCompileInclude> BuildCompileIncludes()

…Primitives/NewAzureProjectScaffolding.cs


a minor change.

Co-authored-by: Dapeng Zhang <ufo54153@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue is related to a non-management package CodeGen Issues that relate to code generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants