Downloads:

10,457

Downloads of v 1.1.2.1:

302

Last Update:

07 Aug 2015

Package Maintainer(s):

Software Author(s):

  • 0xd4d

Tags:

dnspy assembly cil debugger decompiler dnlib dotnet editor il ilspy msil net .net

dnSpy

This is not the latest version of dnSpy available.

1.1.2.1 | Updated: 07 Aug 2015

Downloads:

10,457

Downloads of v 1.1.2.1:

302

Maintainer(s):

Software Author(s):

  • 0xd4d

dnSpy 1.1.2.1

This is not the latest version of dnSpy available.

This Package Contains an Exempted Check

1 Test Passing and 1 Exempted Test


Validation Testing Passed


Verification Testing Exempt:

Package requires .NET 4.7.1 which needs a reboot.

To install dnSpy, run the following command from the command line or from PowerShell:

>

To upgrade dnSpy, run the following command from the command line or from PowerShell:

>

To uninstall dnSpy, run the following command from the command line or from PowerShell:

>

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

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • 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://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. Enter your internal repository url

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

4. Choose your deployment method:


choco upgrade dnspy -y --source="'STEP 3 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 dnspy -y --source="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

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

Exit $exitCode

- name: Ensure dnspy installed
  win_chocolatey:
    name: dnspy
    state: present
    version: 1.1.2.1
    source: STEP 3 URL

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

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'dnspy' do
  action    :install
  version  '1.1.2.1'
  source   'STEP 3 URL'
end

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


Chocolatey::Ensure-Package
(
    Name: dnspy,
    Version: 1.1.2.1,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller dnspy
{
   Name     = 'dnspy'
   Ensure   = 'Present'
   Version  = '1.1.2.1'
   Source   = 'STEP 3 URL'
}

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


package { 'dnspy':
  provider => 'chocolatey',
  ensure   => '1.1.2.1',
  source   => 'STEP 3 URL',
}

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


salt '*' chocolatey.install dnspy version="1.1.2.1" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved by moderator ferventcoder on 30 Dec 2015.

Description

dnSpy is a .NET assembly editor, decompiler, and debugger forked from ILSpy.

Features

  • Assembly editor
  • Decompiler
  • Debugger
  • Tabs and tab groups
  • Themes (blue, dark, light and high contrast)

tools\chocolateyInstall.ps1
$packageName = 'dnspy'
$version = '1.1.2.1'
$url = 'https://github.com/0xd4d/dnSpy/releases/download/v{0}/dnSpy-v{0}.zip' `
       -f $version
$checksum = 'd6b1df754fcd640fb526ea2875caf6fe9a4d1199'
$checksumType = 'sha1'
$unzipLocation = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

function Install-CommonProgramsShortcut($file, $path='')
{
	if (!$file)
	{
		Write-Error "Unable to install common programs shortcut, no file provided"
		return
	}

	$commonPrograms = [Environment]::GetFolderPath("CommonPrograms")
	if (!$commonPrograms)
	{
		Write-Error "Unable to install common programs shortcut, could not get CommonPrograms path"
		return
	}

	$fileLnk = [IO.Path]::GetFileNameWithoutExtension($file) + '.lnk'
	$targetPath = Join-Path -Path "$unzipLocation" -ChildPath "$file"
	$shortcutPath = Join-Path -Path "$commonPrograms" -ChildPath "$path" `
	            | Join-Path -ChildPath "$fileLnk"

	# Create shortcut directory if it doesn't exist
	$shortcutDir = [IO.Path]::GetDirectoryName($shortcutPath)
	if (!(Test-Path -Path "$shortcutDir"))
	{
		New-Item -ItemType "directory" -Path "$shortcutDir"
	}

	Install-ChocolateyShortcut -ShortcutFilePath "$shortcutPath" `
	                           -TargetPath "$targetPath"
}

Install-ChocolateyZipPackage -PackageName "$packageName" `
                             -Url "$url" `
                             -Checksum "$checksum" `
                             -ChecksumType "$checksumType" `
                             -UnzipLocation "$unzipLocation"

# dnSpy currently has no installer executable, so install start menu
# (common programs) shortcuts
Install-CommonProgramsShortcut -Path 'dnSpy' -File 'dnSpy.exe'
Install-CommonProgramsShortcut -Path 'dnSpy' -File 'dnSpy-x86.exe'
tools\chocolateyUninstall.ps1
function Remove-CommonProgramsDirectory($path)
{
	if (!$path)
	{
		Write-Error "Unable to remove common programs shortcut, no path provided"
		return
	}

	$commonPrograms = [Environment]::GetFolderPath("CommonPrograms")
	if (!$commonPrograms)
	{
		Write-Error "Unable to remove common programs shortcut, could not get CommonPrograms path"
		return
	}

	$directory = Join-Path -Path "$commonPrograms" -ChildPath "$path"
	if ((Test-Path -Path "$directory") -and `
	([IO.Path]::GetFileName("$directory") -ceq "$path"))
	{
		Remove-Item -Recurse "$directory"
	}
}

# Remove the start menu (common programs) directory
Remove-CommonProgramsDirectory "dnSpy"
tools\dnSpy-x86.exe.gui
 
tools\dnSpy.exe.gui
 

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.

Version Downloads Last Updated Status
dnSpy 6.0.5 1915 Monday, June 3, 2019 Approved
dnSpy 6.0.4 670 Tuesday, March 26, 2019 Approved
dnSpy 6.0.3 310 Monday, March 4, 2019 Approved
dnSpy 5.0.12 843 Tuesday, December 18, 2018 Approved
dnSpy 5.0.10 269 Sunday, December 2, 2018 Approved
dnSpy 5.0.9 576 Monday, October 15, 2018 Approved
dnSpy 5.0.7 575 Tuesday, August 21, 2018 Approved
dnSpy 5.0.5 569 Saturday, July 14, 2018 Approved
Discussion for the dnSpy Package

Ground Rules:

  • This discussion is only about dnSpy and the dnSpy 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 dnSpy, 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