Skip to content

Conversation

Arlodotexe
Copy link
Member

@Arlodotexe Arlodotexe commented Feb 26, 2025

The single-component solution generation script was moved to the root of the tooling repository, alongside the all-component solution generation script.

The original script was replaced with a wrapped call to the new script location to allow for gradual upstream updates.

A few new features were also brought over from the "all solution" script to improve usability:

  • The -Component parameter allows requesting a specific component by name, rather than by path.
  • Checks for ensuring that provided or computed paths are valid before proceeding with sln generation.
  • Additional logging output was added to determine where the script is when failing silently during debugging. This was kept for the added transparency during normal use.

This updated script is fully backwards compatible with the original and should still work with our existing per-component .bat invocation.

To use the script from its new location:

# From the consuming repo root directory 
PS D:\Windows> ./tooling/GenerateSingleSolution.ps1 -Component Converters
# or
PS D:\Windows> ./tooling/GenerateSingleSolution.ps1 -ComponentPath ./components/Converters

# From a component directory
PS D:\Windows\components\Converters> ./../../tooling/GenerateSingleSolution.ps1

Either of these can be used to generate the single-component solution, including the -winui and -multitargets parameters.

…-component slngen script.

The original script was replaced with a wrapped call to the new script location to allow for gradual upstream updates.
@Arlodotexe Arlodotexe self-assigned this Feb 26, 2025
@Arlodotexe Arlodotexe added enhancement New feature or request dev loop ➰ For issues that impact the core dev-loop of building experiments labels Feb 26, 2025
@michael-hawker
Copy link
Member

Yeah, hopefully in the future we can better coordinate the two scripts, as I feel like there's at least 80% overlap between the all and single, eh?

@michael-hawker michael-hawker enabled auto-merge March 3, 2025 23:59
@michael-hawker michael-hawker merged commit 4e3c95e into main Mar 4, 2025
19 checks passed
@michael-hawker michael-hawker deleted the refactor/slngen/single-solution branch March 4, 2025 00:35
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Toolkit 8.x Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev loop ➰ For issues that impact the core dev-loop of building experiments enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants