You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
944 B

  1. $basePath = $PSScriptRoot
  2. if ([string]::IsNullOrEmpty($basePath))
  3. {
  4. $basePath = Split-Path -parent $psISE.CurrentFile.Fullpath
  5. }
  6. $modulePath = $basePath + '\bin\Debug\netstandard2.0\ICSharpCode.Decompiler.Powershell.dll'
  7. Import-Module $modulePath
  8. $version = Get-DecompilerVersion
  9. Write-Output $version
  10. # different test assemblies - it makes a difference wrt .deps.json so there are two netstandard tests here
  11. $asm_netstdWithDepsJson = $basePath + '\bin\Debug\netstandard2.0\ICSharpCode.Decompiler.Powershell.dll'
  12. $asm_netstd = $basePath + '\bin\Debug\netstandard2.0\ICSharpCode.Decompiler.dll'
  13. $decompiler = Get-Decompiler $asm_netstdWithDepsJson
  14. $classes = Get-DecompiledTypes $decompiler -Types class
  15. $classes.Count
  16. foreach ($c in $classes)
  17. {
  18. Write-Output $c.FullName
  19. }
  20. Get-DecompiledSource $decompiler -TypeName ICSharpCode.Decompiler.PowerShell.GetDecompilerCmdlet
  21. Get-DecompiledProject $decompiler -OutputPath .\decomptest