Skip to content

Conversation

@live1206
Copy link
Member

Contributing to the Azure SDK

Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.

For specific information about pull request etiquette and best practices, see this section.

Copilot AI review requested due to automatic review settings October 21, 2025 04:06
Copy link
Contributor

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 refactors the management generator's scaffolding process to handle shared ARM files centrally rather than during project scaffolding. The change removes redundant file inclusion logic from the generator and relies on the build system's existing infrastructure to include shared files.

Key Changes:

  • Simplified the NewManagementProjectScaffolding class by removing ARM shared file handling logic
  • Updated build configuration to include shared files for generator library generation tests
  • Removed explicit shared file references from test project file

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
Azure.Generator.MgmtTypeSpec.Tests.csproj Removed explicit reference to SharedExtensions.cs that is now handled centrally
NewManagementProjectScaffolding.cs Simplified BuildCompileIncludes() to return empty list, removing ARM shared file scaffolding logic
Directory.Build.Common.targets Extended condition to include generator test projects in centralized shared file inclusion

@github-actions github-actions bot added CodeGen Issues that relate to code generation Mgmt This issue is related to a management package. labels Oct 21, 2025
live1206 and others added 2 commits October 21, 2025 12:07
….Management/src/Primitives/NewManagementProjectScaffolding.cs

Co-authored-by: Copilot <[email protected]>
@live1206
Copy link
Member Author

The CI failure is due to #53340 (comment)

@live1206 live1206 changed the title Skip shared/arm files during scaffolding, it has been handled centrally Skip shared/arm files during scaffolding, handle it centrally Oct 22, 2025
@live1206 live1206 merged commit c4a86ae into Azure:main Oct 22, 2025
41 checks passed
@live1206 live1206 deleted the scaffolding-shared-arm branch October 22, 2025 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CodeGen Issues that relate to code generation Mgmt This issue is related to a management package.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants