Skip to content

Conversation

@jorgerangel-msft
Copy link
Contributor

@jorgerangel-msft jorgerangel-msft commented Oct 24, 2025

This PR adds a new regen preview developer script to aid in testing and validating changes made to the generator. It allows regenerating azure libraries locally using the local artifacts of the generator, helping to see what the regenerated code will look like with the applied changes.

contributes to: Azure/azure-sdk-for-net#52234

example run:
image

@github-actions
Copy link
Contributor

No changes needing a change description found.

@azure-sdk
Copy link
Collaborator

azure-sdk commented Oct 24, 2025

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@jorgerangel-msft jorgerangel-msft force-pushed the local-regen-preview branch 2 times, most recently from 045f8f5 to e281f31 Compare October 24, 2025 21:57
@jorgerangel-msft jorgerangel-msft changed the title [wip] add regen preview local script add regen preview local validation script Oct 24, 2025
@jorgerangel-msft jorgerangel-msft marked this pull request as ready for review October 24, 2025 22:12
@jorgerangel-msft jorgerangel-msft changed the title add regen preview local validation script [http-client-csharp] add regen preview local validation script Oct 24, 2025
@JoshLove-msft
Copy link
Contributor

I tested this locally making a change in CodeWriter to the auto-generated string and ran for all libraries, but only Azure.AI.Projects showed any diffs.

@jorgerangel-msft
Copy link
Contributor Author

I tested this locally making a change in CodeWriter to the auto-generated string and ran for all libraries, but only Azure.AI.Projects showed any diffs.

Strange. I tested this on 2 separate machines and it worked fine. I'll need to debug to see why that would happen.

@JoshLove-msft
Copy link
Contributor

I tested this locally making a change in CodeWriter to the auto-generated string and ran for all libraries, but only Azure.AI.Projects showed any diffs.

Strange. I tested this on 2 separate machines and it worked fine. I'll need to debug to see why that would happen.

Hmm let me try again.

@JoshLove-msft
Copy link
Contributor

I tested this locally making a change in CodeWriter to the auto-generated string and ran for all libraries, but only Azure.AI.Projects showed any diffs.

Strange. I tested this on 2 separate machines and it worked fine. I'll need to debug to see why that would happen.

Hmm let me try again.

Nevermind - I must have been looking at an out of sync diff. It is working as expected.

@jorgerangel-msft jorgerangel-msft added this pull request to the merge queue Oct 30, 2025
Merged via the queue into microsoft:main with commit 3b4799f Oct 30, 2025
37 checks passed
@jorgerangel-msft jorgerangel-msft deleted the local-regen-preview branch October 30, 2025 20:37
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.

4 participants