scriptclass
0.16.0
Class definition extensions for PowerShell's object-based type system
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) 2019 Adam Edwards.
Package Details
Author(s)
- Adam Edwards
Tags
class object PSCustomObject netcore
Cmdlets
Add-ScriptClass Import-Assembly Import-Script Invoke-Method Mock-ScriptClassMethod New-ScriptObject New-ScriptObjectMock Test-ScriptObject Unmock-ScriptClassMethod
Functions
PSEditions
Dependencies
This module has no dependencies.
Release Notes
# ScriptClass 0.16.0 Release Notes
Compatibility fixes for Linux
## New features
* `Import-Assembly` syntax is more sane -- assembly name without '.dll' extension must be specified
* `Import-Assembly` now supports a platform precedence and will search for compatible platforms in a priority order among netstandard1.3, netstandard1.1, and netcoreapp1.0 monikers (in that order)
* `Import-Assembly` now returns a System.Reflection.Assembly if it loads an assembly successfully
* Added common parameters to Import-Assembly through cmdletbinding attribute
## Fixed defects
* Fix `Import-Assembly` so that it handles Linux paths with '/' characters
* Fix break in `Import-Assembly` by replacing use of `ls` alias with `Get-ChildItem` to avoid collision with Linux `ls` command
* Fix path case sensitivity issue with `Import-Script` where entire path of script file was lower-cased before attempting to load the file, which breaks on case-sensitive file systems like Linux
* Added missing test coverage for Import-Assembly
FileList
- ScriptClass.nuspec
- ScriptClass.psd1
- scriptclass.psm1
- src\assemblyhelper.ps1
- src\include.ps1
- src\Mock-ScriptClassMethod.ps1
- src\New-ScriptObjectMock.ps1
- src\scriptclass.ps1
- src\std.ps1
- src\Unmock-ScriptClassMethod.ps1
- src\mock\MethodMocker.ps1
- src\mock\MethodPatcher.ps1
- src\mock\PatchedClassMethod.ps1
- src\mock\PatchedObject.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
0.20.3 | 6,379 | 1/21/2023 |
0.20.2 | 3,280 | 6/20/2020 |
0.20.1 | 4,395 | 9/22/2019 |
0.20.0 | 227 | 9/20/2019 |
0.16.0 (current version) | 1,055 | 2/3/2019 |
0.15.0 | 81 | 1/13/2019 |
0.14.2 | 80 | 1/6/2019 |
0.14.1 | 45 | 1/5/2019 |
0.14.0 | 42 | 1/2/2019 |
0.13.7 | 354 | 8/16/2018 |
0.13.6 | 131 | 7/1/2018 |
0.12.10 | 160 | 2/14/2018 |
0.12.9 | 48 | 2/14/2018 |
0.12.8 | 42 | 2/12/2018 |
0.12.6 | 31 | 2/11/2018 |
0.12.5 | 39 | 2/11/2018 |
0.12.4 | 41 | 2/10/2018 |
0.12.2 | 46 | 2/8/2018 |