Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

1,465

Downloads of v 0.0.0:

1,078

Last Update:

17 Apr 2016

Package Maintainer(s):

Software Author(s):

  • Akira Sugiura

Tags:

tdd isolation mock mocks mocking fake fakes faking unittest unittesting

Get Prig Indirection Stub Setting plugin for ILSpy

  • 1
  • 2
  • 3

0.0.0 | Updated: 17 Apr 2016

Downloads:

1,465

Downloads of v 0.0.0:

1,078

Maintainer(s):

Software Author(s):

  • Akira Sugiura

Get Prig Indirection Stub Setting plugin for ILSpy 0.0.0

  • 1
  • 2
  • 3

This Package Contains an Exempted Check

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Exemption:

Requires Visual Studio

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install Get Prig Indirection Stub Setting plugin for ILSpy, run the following command from the command line or from PowerShell:

>

To upgrade Get Prig Indirection Stub Setting plugin for ILSpy, run the following command from the command line or from PowerShell:

>

To uninstall Get Prig Indirection Stub Setting plugin for ILSpy, run the following command from the command line or from PowerShell:

>

Deployment Method:

NOTE

This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade ilspy.getprigindirectionstubsetting.plugin -y --source="'INTERNAL REPO URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade ilspy.getprigindirectionstubsetting.plugin -y --source="'INTERNAL REPO URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install ilspy.getprigindirectionstubsetting.plugin
  win_chocolatey:
    name: ilspy.getprigindirectionstubsetting.plugin
    version: '0.0.0'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'ilspy.getprigindirectionstubsetting.plugin' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '0.0.0'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller ilspy.getprigindirectionstubsetting.plugin
{
    Name     = "ilspy.getprigindirectionstubsetting.plugin"
    Version  = "0.0.0"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'ilspy.getprigindirectionstubsetting.plugin':
  ensure   => '0.0.0',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Package Approved

This package was approved by moderator ferventcoder on 18 Apr 2016.

Description

This is a ILSpy plugin that makes more easy to get Prig Indirection Stub Setting.


tools\ILSpy.GetPrigIndirectionStubSetting.Common.dll
md5: B41A3409A73315A3CDC1AC0391FDE0F4 | sha1: 0552A3B731CCE95956F29019F4F50A63C0F7EBD7 | sha256: 313691A47AE4F06F09AEDA39AE37867119F0373DB07F7A6FEBEA559FFF33E997 | sha512: B09D917E8652545122E7BF472F4D6C81DEFD952A0772C75747998758142018D88226E71859F6C1F6B7A7E4B731BE9193B6FC28F6CF2664520BC6DCC6568F6339
tools\ILSpy.GetPrigIndirectionStubSetting.Plugin.dll
md5: 7A96BB921DAEF1DB567962541443C840 | sha1: EB767C99D1796CB19E21932F20F714670A4F1EC1 | sha256: F3D4A402DDC22E8A98F305F335F14067B3D36815A9B428C18F1FABC814F25A18 | sha512: 3288541B0DDD46665AD05D5319E718D16C1CE8A991678A3AD5FE120F13E96B79982E85E312AC8698191A7A1479296AED88D2C32DA8C2379067C9F4A00E8A6690
tools\Get-PrigIndirectionStubSetting.ps1
# 
# File: Get-PrigIndirectionStubSetting.ps1
# 
# Author: Akira Sugiura ([email protected])
# 
# 
# Copyright (c) 2016 Akira Sugiura
#  
#  This software is MIT License.
#  
#  Permission is hereby granted, free of charge, to any person obtaining a copy
#  of this software and associated documentation files (the "Software"), to deal
#  in the Software without restriction, including without limitation the rights
#  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#  copies of the Software, and to permit persons to whom the Software is
#  furnished to do so, subject to the following conditions:
#  
#  The above copyright notice and this permission notice shall be included in
#  all copies or substantial portions of the Software.
#  
#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
#  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
#  THE SOFTWARE.
#

[CmdletBinding()]
param (
    [Parameter(Mandatory = $True)]
    [string]
    $MethodIdsPath, 

    [switch]
    $Core
)

Write-Verbose ('Method IDs Path          : {0}' -f $MethodIdsPath)



function InvokeCore {
    param (
        [Parameter(Mandatory = $True)]
        [string]
        $AssemblyLocation
    )

    [System.Reflection.ProcessorArchitecture]$osArch = 0
    $osArch = $(if ([System.IntPtr]::Size -eq 8) { 'Amd64' } else { 'X86' })
    Write-Verbose ('ILSpy running for: {0}' -f $osArch)

    [System.Reflection.ProcessorArchitecture]$asmArch = 0
    $asmName = prig dasm -assemblyfrom $AssemblyLocation | ConvertFrom-Csv
    $asmArch = $asmName.ProcessorArchitecture
    Write-Verbose ('Assembly Architecture: {0}' -f $asmArch)

    if ($osArch -eq 'X86') {
        if ($asmArch -match '(X86)|(MSIL)') {
            $powershell = [System.Environment]::ExpandEnvironmentVariables('%windir%\system32\WindowsPowerShell\v1.0\powershell.exe')
        }
    } elseif ($osArch -eq 'Amd64') {
        if ($asmArch -match '(Amd64)|(MSIL)') {
            $powershell = [System.Environment]::ExpandEnvironmentVariables('%windir%\system32\WindowsPowerShell\v1.0\powershell.exe')
        } elseif ($asmArch -eq 'X86') {
            $powershell = [System.Environment]::ExpandEnvironmentVariables('%windir%\SysWOW64\WindowsPowerShell\v1.0\powershell.exe')
        }
    }
    if ($null -eq $powershell) {
        New-Object System.NotSupportedException ('Running ILSpy for {0} and loading {1} assembly is not supported.' -f $osArch, $asmArch) 
    }
    Write-Verbose ('PowerShell: {0}' -f $powershell)

    $imageRuntimeVer = $asmName.ImageRuntimeVersion
    Write-Verbose ('Image Runtime Version: {0}' -f $imageRuntimeVer)

    $argList = '-NoLogo', '-NoProfile', '-File', ".\Get-PrigIndirectionStubSetting.ps1", """$MethodIdsPath""", "-Core"
    if ($imageRuntimeVer -eq 'v2.0.50727') {
        $argList = '-Version', '2' + $argList
    }
    if ($PSCmdlet.MyInvocation.BoundParameters["Verbose"].IsPresent) {
        $argList += '-Verbose'
    }
    Write-Verbose ('Argument List: {0}' -f ($argList -join ' '))

    $outputsPath = [System.IO.Path]::GetTempFileName()
    $errorsPath = [System.IO.Path]::GetTempFileName()
    Start-Process $powershell $argList -Wait -WindowStyle 'Hidden' -RedirectStandardOutput $outputsPath -RedirectStandardError $errorsPath
    $errors = Get-Content $errorsPath
    Remove-Item $errorsPath -ErrorAction SilentlyContinue
    if (0 -lt $errors.Length) {
        throw New-Object System.InvalidOperationException ($errors -join "`r`n")
    }
    Remove-Item $MethodIdsPath -ErrorAction SilentlyContinue
    Get-Content $outputsPath
    Remove-Item $outputsPath -ErrorAction SilentlyContinue
}



function GetIndirectionStubSettingCore {
    param (
        [Parameter(Mandatory = $True)]
        [ILSpy.GetPrigIndirectionStubSetting.Common.ReflectionMethodId[]]
        $MethodIds
    )

    $inputObject = New-Object 'System.Collections.Generic.List[System.Reflection.MethodBase]'
    [System.Reflection.Assembly]$asm = $null
    $assemblyTypes = New-Object "System.Collections.Generic.Dictionary[int, Type]"
    $typeMethods = New-Object "System.Collections.Generic.Dictionary[Type, [System.Collections.Generic.Dictionary[int, System.Reflection.MethodBase]]]"
    foreach ($methodId in $MethodIds) {
        if ($null -eq $asm) {
            $asm = [System.Reflection.Assembly]::LoadFrom($methodId.AssemblyLocation)
            foreach ($type in $asm.GetTypes()) {
                $assemblyTypes[$type.MetadataToken] = $type
            }
        }
        $type = $assemblyTypes[$methodId.TypeDefToken]
        if (!$typeMethods.ContainsKey($type)) {
            $typeMethods[$type] = [System.Collections.Generic.Dictionary[int, System.Reflection.MethodBase]](
                                        New-Object "System.Collections.Generic.Dictionary[int, System.Reflection.MethodBase]")
            $members = $type.GetMembers([System.Reflection.BindingFlags]'Public, NonPublic, Static, Instance, DeclaredOnly')
            foreach ($member in $members) {
                if ($member -isnot [System.Reflection.MethodBase]) { continue }
                $methods = $typeMethods[$type]
                $methods[$member.MetadataToken] = $member
            }
        }
        $methods = $typeMethods[$type]
        $inputObject.Add($methods[$methodId.MethodDefToken])
    }

    Import-Module ([System.IO.Path]::Combine($env:URASANDESU_PRIG_PACKAGE_FOLDER, 'tools\Urasandesu.Prig'))
    if ($Host.UI.RawUI) {
        $rawUI = $Host.UI.RawUI
        $oldSize = $rawUI.BufferSize
        $typeName = $oldSize.GetType().FullName
        $newSize = New-Object $typeName (1024, $oldSize.Height)
        $rawUI.BufferSize = $newSize
    }
    $inputObject | Get-IndirectionStubSetting
}


[void][System.Reflection.Assembly]::LoadFrom((dir .\ILSpy.GetPrigIndirectionStubSetting.Common.dll).FullName)
try {
    $sr = New-Object System.IO.StreamReader $MethodIdsPath
    $serializer = New-Object System.Xml.Serialization.XmlSerializer ([ILSpy.GetPrigIndirectionStubSetting.Common.ReflectionMethodId[]])
    $methodIds = @($serializer.Deserialize($sr))
} finally {
    if ($null -ne $sr) {
        $sr.Dispose()
    }
}

if ($Core) {
    GetIndirectionStubSettingCore $methodIds
} else {
    InvokeCore $methodIds[0].AssemblyLocation
}
tools\ChocolateyUninstall.ps1
# 
# File: ChocolateyUninstall.ps1
# 
# Author: Akira Sugiura ([email protected])
# 
# 
# Copyright (c) 2016 Akira Sugiura
#  
#  This software is MIT License.
#  
#  Permission is hereby granted, free of charge, to any person obtaining a copy
#  of this software and associated documentation files (the "Software"), to deal
#  in the Software without restriction, including without limitation the rights
#  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#  copies of the Software, and to permit persons to whom the Software is
#  furnished to do so, subject to the following conditions:
#  
#  The above copyright notice and this permission notice shall be included in
#  all copies or substantial portions of the Software.
#  
#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
#  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
#  THE SOFTWARE.
#


$path = [System.IO.Path]::Combine($env:ChocolateyInstall, 'lib\ilspy\tools\ILSpy.GetPrigIndirectionStubSetting.Plugin.dll')
Remove-Item $path -Force

$path = [System.IO.Path]::Combine($env:ChocolateyInstall, 'lib\ilspy\tools\ILSpy.GetPrigIndirectionStubSetting.Common.dll')
Remove-Item $path -Force

$path = [System.IO.Path]::Combine($env:ChocolateyInstall, 'lib\ilspy\tools\Get-PrigIndirectionStubSetting.ps1')
Remove-Item $path -Force
tools\ChocolateyInstall.ps1
# 
# File: ChocolateyInstall.ps1
# 
# Author: Akira Sugiura ([email protected])
# 
# 
# Copyright (c) 2016 Akira Sugiura
#  
#  This software is MIT License.
#  
#  Permission is hereby granted, free of charge, to any person obtaining a copy
#  of this software and associated documentation files (the "Software"), to deal
#  in the Software without restriction, including without limitation the rights
#  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#  copies of the Software, and to permit persons to whom the Software is
#  furnished to do so, subject to the following conditions:
#  
#  The above copyright notice and this permission notice shall be included in
#  all copies or substantial portions of the Software.
#  
#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
#  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
#  THE SOFTWARE.
#



$destination = [System.IO.Path]::Combine($env:ChocolateyInstall, 'lib\ilspy\tools\')

$path = [System.IO.Path]::Combine($env:ChocolateyInstall, 'lib\ILSpy.GetPrigIndirectionStubSetting.Plugin\tools\ILSpy.GetPrigIndirectionStubSetting.Plugin.dll')
Copy-Item $path $destination -Force

$path = [System.IO.Path]::Combine($env:ChocolateyInstall, 'lib\ILSpy.GetPrigIndirectionStubSetting.Plugin\tools\ILSpy.GetPrigIndirectionStubSetting.Common.dll')
Copy-Item $path $destination -Force

$path = [System.IO.Path]::Combine($env:ChocolateyInstall, 'lib\ILSpy.GetPrigIndirectionStubSetting.Plugin\tools\Get-PrigIndirectionStubSetting.ps1')
Copy-Item $path $destination -Force

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
Get Prig Indirection Stub Setting plugin for ILSpy 0.0.0-alpha01 387 Monday, March 21, 2016 Exempted

Version 0.0.0

Version 0.0.0-alpha01

  • Initial release.

About more previous versions, please see https://github.com/urasandesu/ILSpy.GetPrigIndirectionStubSetting.Plugin/releases.


Discussion for the Get Prig Indirection Stub Setting plugin for ILSpy Package

Ground Rules:

  • This discussion is only about Get Prig Indirection Stub Setting plugin for ILSpy and the Get Prig Indirection Stub Setting plugin for ILSpy package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Get Prig Indirection Stub Setting plugin for ILSpy, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus