Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- In the module we create a minimum runspace for PowerShell, and use it to parse the command line. The mini runspace contains the built-in core modules for PowerShell. We don't need them when we package and publish our module because the runtime will have them. That'll reduce the module size. So in the module project we exclude `contentfiles` when we referece Microsoft.PowerShell.SDK. - The issue in the unit tests is that it doesn't find the built-in core module when we create the runspace. So we have a reference to Microsoft.PowerShell.SDK in the test project to include `contentfiles` to provide the built-in core modules. The unit tests can run successfully.
- Loading branch information