SolutionComponentExtractor 1.1.0

dotnet add package SolutionComponentExtractor --version 1.1.0
                    
NuGet\Install-Package SolutionComponentExtractor -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SolutionComponentExtractor" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SolutionComponentExtractor" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="SolutionComponentExtractor" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SolutionComponentExtractor --version 1.1.0
                    
#r "nuget: SolutionComponentExtractor, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SolutionComponentExtractor@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SolutionComponentExtractor&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=SolutionComponentExtractor&version=1.1.0
                    
Install as a Cake Tool

Solution Component Extractor (XrmToolBox plugin)

Load an exported unmanaged Dynamics 365 / Dataverse solution zip, see every root component it contains, untick the ones you don't want, and save a new solution zip — same format, same publisher — ready to import into the target environment.

Usage

  1. Drop a solution .zip on the tool (or click Browse... / Open solution, Ctrl+O). Header shows name, version, publisher and a Managed/Unmanaged badge.
  2. Pick the components to keep:
    • Component types (left): tick/untick a type to keep or remove all of its components; click a type to show only its components. The counter shows kept / total.
    • Components (right): tick the components to keep. Search box (Ctrl+F), click a column to sort, Only components to keep to review your selection.
    • Right-click / keyboard on selected rows: Keep (Insert), Remove (Delete), Keep only the selected rows, Copy schema name (Ctrl+C). Ctrl+A selects all rows.
    • Unticking a table also unticks the forms/views listed inside it; ticking a form ticks its table.
  3. Optionally change the new solution's unique name, display name and version (validated as you type).
  4. Generate solution (Ctrl+S) saves the zip (default name UniqueName_1_0_0_0.zip) and offers to open the folder, or Import into environment imports it into the connected environment (asynchronous import, optional Publish all at the end).

The Activity panel lists removed files and warnings (for example a kept process that runs on a table you removed); it opens automatically when there are warnings.

What the generated solution contains

  • solution.xml: only the kept RootComponent entries. MissingDependencies declared by removed components are dropped. Unique name, display name and version are updated.
  • customizations.xml: definitions of removed components are deleted (tables, forms, views, charts, option sets, roles, processes, web resources, plug-in assemblies and steps, PCF controls, apps, site maps, connection references...). Relationships whose lookup lives on a removed table, and mappings to or from a removed table, are also removed. Everything else (languages, organization settings...) stays unchanged.
  • Files: files referenced only by removed components are deleted (workflow XAML / flow JSON, web resource content, plug-in DLLs, PCF folders, environmentvariabledefinitions/<name>/...). A file that a kept component also references is never deleted.
  • Zip entry order, [Content_Types].xml and the XML encoding/BOM are preserved.

Things to know

  • A table is kept or removed as a whole, according to how it was added to the source solution (include all subcomponents or not). A form, view or chart listed as its own root component is removed together with its table.
  • Components whose details say "Not found in customizations.xml" have no definition there. Removing them only removes their RootComponent entry.
  • Dependencies between kept and removed components are not resolved for you. If a kept component needs a removed one, that component must already exist in the target environment, or the import will fail.

Project layout

Folder Content
Tool/SolutionComponentExtractor/SolutionComponentExtractor/Core Engine: reads the zip, locates each component's XML and files, writes the filtered zip. No XrmToolBox dependency.
Tool/SolutionComponentExtractor/SolutionComponentExtractor/UI Theme (colors, Segoe Fluent icons), drop zone, list view.
Tool/.../MyPlugin.cs, MyPluginControl.cs (+ designer) XrmToolBox plugin and its screen.
tests/SolutionComponentExtractor.Tests Console checks that compile the Core folder and run it against a synthetic solution.
src/ First prototype (superseded by Tool/).

Build

Open Tool/SolutionComponentExtractor/SolutionComponentExtractor.sln in Visual Studio and build, or:

msbuild Tool\SolutionComponentExtractor\SolutionComponentExtractor.sln /p:Configuration=Release
dotnet run --project tests/SolutionComponentExtractor.Tests                                     # run the checks
dotnet run --project tests/SolutionComponentExtractor.Tests -- C:\path\MySolution_1_0_0_0.zip   # list a real solution's components

Install in XrmToolBox

Copy Tool\SolutionComponentExtractor\SolutionComponentExtractor\bin\Release\SolutionComponentExtractor.dll to %APPDATA%\MscrmTools\XrmToolBox\Plugins, or install it directly from tool library, restart XrmToolBox and open Solution Component Extractor. You don't need a connection to open and generate solutions, only to use Import into environment.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 239 10/2/2026

1.1.0 - First release

- Open an unmanaged solution .zip by drag and drop or Browse; managed solutions are rejected with an explanation.
- All root components listed and grouped by type, with a kept / total counter per type.
- Keep or remove a whole type in one click, or components one by one; search, sort, right-click bulk actions (keep, remove, keep only selected).
- Live read-only preview of customizations.xml and solution.xml, updated at each change; click a component to jump to its XML block.
- Generated solution keeps the source format and publisher; definitions, files, relationships, field mappings and missing dependencies of removed components are cleaned up.
- New unique name, display name and version for the generated solution, validated as you type.
- Warnings before generating: unmodified managed components (no content to import), processes running on a removed table, components removed with their table.
- Direct import into the connected environment, with readable error messages and the list of failed components.
- Activity panel with removed files and warnings, built-in help, modern dialogs.