Chocolatey Community Coffee Break

Join the Chocolatey Team on our regular monthly stream where we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

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

Announcing Chocolatey Central Management 0.10.0

Livestream from
Thursday, 06 October 2022

We recently released our largest update to Chocolatey Central Management so far. Join Gary and Steph to find out more about Chocolatey Central Management and the new features and fixes we've added to this release.

Watch On-Demand
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
Chocolatey Product Spotlight: Chocolatey 1.2.0 and Chocolatey Licensed Extension 5.0.0

Livestream from
Thursday, 03 November 2022

Join Paul and Gary for this months Chocolatey product livestream where we look at the latest release of Chocolatey 1.2.0, Chocolatey Licensed Extension 5.0.0 and shine a spotlight on the new hook scripts functionality. This opens up so many possibilities for Chocolatey CLI users!

Watch On-Demand
Chocolatey Coding Livestream

Livestream from
Tuesday, 29 November 2022

Join Josh as he adds the ability to manage Chocolatey GUI config and features with the Chocolatey Ansible Collection.

Watch On-Demand
Introduction into Chocolatey with Veeam

Webinar from
Tuesday, 13 December 2022

Join Gary, Paul, and Maurice as they introduce and demonstrate how to use Chocolatey! Questions will be answered live in an Ask Me Anything format.

Watch On-Demand

Downloads:

2,328,617

Downloads of v 2.1.505:

8,073

Last Update:

12 Mar 2019

Package Maintainer(s):

Software Author(s):

  • Microsoft

Tags:

dotnetcore admin dotnet .net core sdk cli

.NET Core SDK

This is not the latest version of .NET Core SDK available.

  • 1
  • 2
  • 3

2.1.505 | Updated: 12 Mar 2019

Downloads:

2,328,617

Downloads of v 2.1.505:

8,073

Software Author(s):

  • Microsoft

.NET Core SDK 2.1.505

This is not the latest version of .NET Core SDK available.

  • 1
  • 2
  • 3

All Checks are Passing

3 Passing Tests


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install .NET Core SDK, run the following command from the command line or from PowerShell:

>

To upgrade .NET Core SDK, run the following command from the command line or from PowerShell:

>

To uninstall .NET Core SDK, 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 dotnetcore-sdk -y --source="'INTERNAL REPO URL'" --version="'2.1.505'" [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 dotnetcore-sdk -y --source="'INTERNAL REPO URL'" --version="'2.1.505'" 
$exitCode = $LASTEXITCODE

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

Exit $exitCode

- name: Install dotnetcore-sdk
  win_chocolatey:
    name: dotnetcore-sdk
    version: '2.1.505'
    source: INTERNAL REPO URL
    state: present

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


chocolatey_package 'dotnetcore-sdk' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '2.1.505'
end

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


cChocoPackageInstaller dotnetcore-sdk
{
    Name     = "dotnetcore-sdk"
    Version  = "2.1.505"
    Source   = "INTERNAL REPO URL"
}

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


package { 'dotnetcore-sdk':
  ensure   => '2.1.505',
  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 as a trusted package on 13 Mar 2019.

Description

.NET Core is a blazing fast, lightweight and modular platform for creating web applications and services that run on Windows, Linux and Mac.

The SDK includes the runtime and command line tools for creating .NET Core applications


tools\chocolateyinstall.ps1

$ErrorActionPreference = 'Stop';

$packageName= 'dotnetcore-sdk'
$toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url        = 'https://download.visualstudio.microsoft.com/download/pr/ad308a66-16e5-4d72-aa0a-0174c4d3621e/617718b26b29f4e4df0096800c72b9b3/dotnet-sdk-2.1.505-win-x86.exe'
$checksum   = '7D09100FE3C862429E76635DC84DB3885DCC593943A936376501757829EF6B0454968F332F13FDE543897E02C20ABE3D691F879BFE5AD8268F4BE73783C3403B'
$url64      = 'https://download.visualstudio.microsoft.com/download/pr/4690d405-11c6-488e-b1ba-4f2e9b247b25/7c70d9003e02997b66d843ec54ba53d1/dotnet-sdk-2.1.505-win-x64.exe'
$checksum64 = 'BB93A14AFF94FCFFE55CCE9393690A58F8E7707D56B4C309CE809D61F09A54F67B1A16690D6A71A902EC45AB1D2696EE2F0DF88DFF00FDD7605CA577E7C3983B'

$packageArgs = @{
  packageName   = $packageName
  unzipLocation = $toolsDir
  fileType      = 'EXE'
  url           = $url
  url64bit      = $url64

  silentArgs    = "/install /quiet /norestart /log `"$env:TEMP\$($packageName)\$($packageName).MsiInstall.log`""
  validExitCodes= @(0, 3010, 1641)

  softwareName  = 'dotnet-core*'
  checksum      = $checksum
  checksumType  = 'SHA512'
  checksum64    = $checksum64
}

Install-ChocolateyPackage @packageArgs
tools\chocolateyuninstall.ps1



$ErrorActionPreference = 'Stop';
$packageArgs = @{
  packageName   = $env:ChocolateyPackageName
  softwareName  = 'Microsoft .NET Core SDK*'
  fileType      = 'EXE'
  silentArgs    = "/uninstall /quiet"
  validExitCodes= @(0, 3010, 1605, 1614, 1641)
}

$uninstalled = $false
[array]$key = Get-UninstallRegistryKey -SoftwareName $packageArgs['softwareName'] | 
    ?{ -Not $_.WindowsInstaller -eq 1 } # for some reason the SDK is registered twice but picking the EXE instead of MSI here

if ($key.Count -eq 1) {
  $key | % { 
    $file = $_.UninstallString -replace '(?<=".+")\s+.*$', ''
    Write-Output "File: $file"
    $packageArgs['file'] = $file

    Uninstall-ChocolateyPackage @packageArgs
  }
} elseif ($key.Count -eq 0) {
  Write-Warning "$packageName has already been uninstalled by other means."
} elseif ($key.Count -gt 1) {
  Write-Warning "$($key.Count) matches found!"
  Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
  Write-Warning "Please alert package maintainer the following keys were matched:"
  $key | % {Write-Warning "- $($_.DisplayName)"}
}



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
.NET Core SDK 3.1.425 16024 Tuesday, November 8, 2022 Approved
.NET Core SDK 3.1.424 12136 Wednesday, October 12, 2022 Approved
.NET Core SDK 3.1.423 11822 Wednesday, September 14, 2022 Approved
.NET Core SDK 3.1.422 13100 Tuesday, August 9, 2022 Approved
.NET Core SDK 3.1.421 11170 Tuesday, July 12, 2022 Approved
.NET Core SDK 3.1.420 11422 Wednesday, June 15, 2022 Approved
.NET Core SDK 3.1.419 13447 Wednesday, May 11, 2022 Approved
.NET Core SDK 3.1.418 10238 Tuesday, April 12, 2022 Approved
.NET Core SDK 3.1.417 14351 Wednesday, March 9, 2022 Approved
.NET Core SDK 3.1.416 33643 Wednesday, December 15, 2021 Approved
.NET Core SDK 3.1.415 12674 Monday, November 8, 2021 Approved
.NET Core SDK 3.1.414.20211031 4451 Sunday, October 31, 2021 Approved
.NET Core SDK 3.1.414 11293 Tuesday, October 12, 2021 Approved
.NET Core SDK 3.1.413 17566 Tuesday, September 14, 2021 Approved
.NET Core SDK 3.1.412 12242 Wednesday, August 11, 2021 Approved
.NET Core SDK 3.1.411 12278 Tuesday, July 13, 2021 Approved
.NET Core SDK 3.1.410 17849 Tuesday, June 8, 2021 Approved
.NET Core SDK 3.1.409 12295 Tuesday, May 11, 2021 Approved
.NET Core SDK 3.1.408 12602 Wednesday, April 14, 2021 Approved
.NET Core SDK 3.1.407 23014 Tuesday, March 9, 2021 Approved
.NET Core SDK 3.1.406 21850 Tuesday, February 9, 2021 Approved
.NET Core SDK 3.1.405 15121 Tuesday, January 12, 2021 Approved
.NET Core SDK 3.1.404 32183 Tuesday, November 10, 2020 Approved
.NET Core SDK 3.1.403 30725 Tuesday, October 13, 2020 Approved
.NET Core SDK 3.1.402 24740 Tuesday, September 8, 2020 Approved
.NET Core SDK 3.1.401 24290 Tuesday, August 11, 2020 Approved
.NET Core SDK 3.1.302 20102 Tuesday, July 14, 2020 Approved
.NET Core SDK 3.1.301 21300 Tuesday, June 9, 2020 Approved
.NET Core SDK 3.1.300 14235 Tuesday, May 19, 2020 Approved
.NET Core SDK 3.1.202 4338 Friday, May 15, 2020 Approved
.NET Core SDK 3.1.201 39531 Wednesday, March 25, 2020 Approved
.NET Core SDK 3.1.200 5758 Tuesday, March 17, 2020 Approved
.NET Core SDK 3.1.102 20322 Tuesday, February 18, 2020 Approved
.NET Core SDK 3.1.101 88070 Monday, January 20, 2020 Approved
.NET Core SDK 3.1.100 318626 Tuesday, December 3, 2019 Approved
.NET Core SDK 3.1.100-preview3-014645 517 Tuesday, November 19, 2019 Approved
.NET Core SDK 3.0.103 4455 Tuesday, February 18, 2020 Approved
.NET Core SDK 3.0.102 636 Friday, January 24, 2020 Approved
.NET Core SDK 3.0.101 30578 Tuesday, November 19, 2019 Approved
.NET Core SDK 3.0.100 68763 Monday, September 23, 2019 Approved
.NET Core SDK 3.0.100-rc1-014190 1188 Tuesday, September 17, 2019 Approved
.NET Core SDK 3.0.100-preview9-014004 2567 Thursday, September 5, 2019 Approved
.NET Core SDK 3.0.100-preview8-013656 3296 Wednesday, August 14, 2019 Approved
.NET Core SDK 3.0.100-preview7-012821 2080 Tuesday, July 23, 2019 Approved
.NET Core SDK 3.0.100-preview6-012264 2115 Wednesday, June 12, 2019 Approved
.NET Core SDK 3.0.100-preview5-011568 1150 Monday, May 6, 2019 Approved
.NET Core SDK 3.0.100-preview4-011223 560 Friday, April 19, 2019 Approved
.NET Core SDK 3.0.100-preview3-010431 775 Thursday, March 7, 2019 Approved
.NET Core SDK 3.0.100-preview-010184 273 Friday, March 1, 2019 Approved
.NET Core SDK 2.2.402 65847 Tuesday, September 10, 2019 Approved
.NET Core SDK 2.2.401 140648 Thursday, July 25, 2019 Approved
.NET Core SDK 2.2.301 8337 Tuesday, July 9, 2019 Approved
.NET Core SDK 2.2.300 18081 Wednesday, May 22, 2019 Approved
.NET Core SDK 2.2.207 6096 Tuesday, December 17, 2019 Approved
.NET Core SDK 2.2.204 4922 Tuesday, May 14, 2019 Approved
.NET Core SDK 2.2.203 31747 Wednesday, April 10, 2019 Approved
.NET Core SDK 2.2.202 3120 Thursday, April 4, 2019 Approved
.NET Core SDK 2.2.200-preview 515 Friday, December 7, 2018 Approved
.NET Core SDK 2.2.110 1892 Tuesday, December 17, 2019 Approved
.NET Core SDK 2.2.107 10363 Thursday, May 30, 2019 Approved
.NET Core SDK 2.2.105 7606 Tuesday, March 12, 2019 Approved
.NET Core SDK 2.2.104 109993 Wednesday, February 13, 2019 Approved
.NET Core SDK 2.2.102 13944 Wednesday, January 9, 2019 Approved
.NET Core SDK 2.2.101 5539 Wednesday, January 2, 2019 Approved
.NET Core SDK 2.2.0 15005 Tuesday, December 4, 2018 Approved
.NET Core SDK 2.2.0-preview3 301 Tuesday, November 20, 2018 Approved
.NET Core SDK 2.1.818 1770 Friday, August 20, 2021 Approved
.NET Core SDK 2.1.817 109 Wednesday, August 11, 2021 Approved
.NET Core SDK 2.1.816 834 Tuesday, May 11, 2021 Approved
.NET Core SDK 2.1.815 247 Wednesday, April 14, 2021 Approved
.NET Core SDK 2.1.814 156 Wednesday, March 10, 2021 Approved
.NET Core SDK 2.1.813 344 Tuesday, February 9, 2021 Approved
.NET Core SDK 2.1.812 189 Tuesday, January 12, 2021 Approved
.NET Core SDK 2.1.811 1500 Tuesday, October 13, 2020 Approved
.NET Core SDK 2.1.810 624 Tuesday, September 8, 2020 Approved
.NET Core SDK 2.1.809 366 Tuesday, August 11, 2020 Approved
.NET Core SDK 2.1.808 230 Tuesday, July 14, 2020 Approved
.NET Core SDK 2.1.807 787 Tuesday, June 9, 2020 Approved
.NET Core SDK 2.1.806 356 Friday, May 15, 2020 Approved
.NET Core SDK 2.1.805 697 Wednesday, March 25, 2020 Approved
.NET Core SDK 2.1.804 718 Tuesday, February 18, 2020 Approved
.NET Core SDK 2.1.803 2306 Friday, January 24, 2020 Approved
.NET Core SDK 2.1.802 4008 Tuesday, September 10, 2019 Approved
.NET Core SDK 2.1.801 94358 Thursday, July 25, 2019 Approved
.NET Core SDK 2.1.701 2175 Tuesday, July 9, 2019 Approved
.NET Core SDK 2.1.700 3963 Wednesday, May 22, 2019 Approved
.NET Core SDK 2.1.617 82 Tuesday, January 12, 2021 Approved
.NET Core SDK 2.1.616 65 Tuesday, October 13, 2020 Approved
.NET Core SDK 2.1.615 70 Tuesday, September 8, 2020 Approved
.NET Core SDK 2.1.614 71 Tuesday, August 11, 2020 Approved
.NET Core SDK 2.1.613 66 Tuesday, July 14, 2020 Approved
.NET Core SDK 2.1.612 97 Tuesday, June 9, 2020 Approved
.NET Core SDK 2.1.611 128 Friday, May 15, 2020 Approved
.NET Core SDK 2.1.610 726 Wednesday, March 25, 2020 Approved
.NET Core SDK 2.1.609 173 Tuesday, February 18, 2020 Approved
.NET Core SDK 2.1.608 150 Friday, January 24, 2020 Approved
.NET Core SDK 2.1.607 310 Tuesday, December 17, 2019 Approved
.NET Core SDK 2.1.604 1116 Tuesday, May 14, 2019 Approved
.NET Core SDK 2.1.603 1663 Wednesday, April 10, 2019 Approved
.NET Core SDK 2.1.602 458 Thursday, April 4, 2019 Approved
.NET Core SDK 2.1.526 2785 Friday, August 20, 2021 Approved
.NET Core SDK 2.1.525 69 Wednesday, August 11, 2021 Approved
.NET Core SDK 2.1.524 119 Tuesday, May 11, 2021 Approved
.NET Core SDK 2.1.523 146 Wednesday, April 14, 2021 Approved
.NET Core SDK 2.1.522 70 Wednesday, March 10, 2021 Approved
.NET Core SDK 2.1.521 80 Tuesday, February 9, 2021 Approved
.NET Core SDK 2.1.520 122 Tuesday, January 12, 2021 Approved
.NET Core SDK 2.1.519 121 Tuesday, October 13, 2020 Approved
.NET Core SDK 2.1.518 127 Tuesday, September 8, 2020 Approved
.NET Core SDK 2.1.517 112 Tuesday, August 11, 2020 Approved
.NET Core SDK 2.1.516 101 Tuesday, July 14, 2020 Approved
.NET Core SDK 2.1.515 155 Tuesday, June 9, 2020 Approved
.NET Core SDK 2.1.514 230 Friday, May 15, 2020 Approved
.NET Core SDK 2.1.513 411 Wednesday, March 25, 2020 Approved
.NET Core SDK 2.1.512 1803 Tuesday, February 18, 2020 Approved
.NET Core SDK 2.1.510 347 Tuesday, December 17, 2019 Approved
.NET Core SDK 2.1.505 8073 Tuesday, March 12, 2019 Approved
.NET Core SDK 2.1.504 83170 Wednesday, February 13, 2019 Approved
.NET Core SDK 2.1.503 1706 Wednesday, January 9, 2019 Approved
.NET Core SDK 2.1.502 2746 Thursday, January 3, 2019 Approved
.NET Core SDK 2.1.500 6253 Tuesday, November 20, 2018 Approved
.NET Core SDK 2.1.403 16402 Tuesday, October 2, 2018 Approved
.NET Core SDK 2.1.402 6114 Tuesday, September 11, 2018 Approved
.NET Core SDK 2.1.401 14067 Tuesday, August 21, 2018 Approved
.NET Core SDK 2.1.400 4590 Wednesday, August 15, 2018 Approved
.NET Core SDK 2.1.302 90247 Tuesday, July 10, 2018 Approved
.NET Core SDK 2.1.301 5900 Friday, June 22, 2018 Approved
.NET Core SDK 2.1.300 58704 Wednesday, May 30, 2018 Approved
.NET Core SDK 2.1.300-rc1-008673 420 Wednesday, May 23, 2018 Approved
.NET Core SDK 2.1.300-preview1-008174 709 Tuesday, February 27, 2018 Approved
.NET Core SDK 2.1.202 1438 Tuesday, December 17, 2019 Approved
.NET Core SDK 2.1.200 26276 Tuesday, May 8, 2018 Approved
.NET Core SDK 2.1.105 25895 Wednesday, April 18, 2018 Approved
.NET Core SDK 2.1.104 9205 Wednesday, April 4, 2018 Approved
.NET Core SDK 2.1.103 1907 Tuesday, March 27, 2018 Approved
.NET Core SDK 2.1.102 2462 Wednesday, March 21, 2018 Approved
.NET Core SDK 2.1.101 1991 Friday, March 16, 2018 Approved
.NET Core SDK 2.1.4 41136 Friday, January 12, 2018 Approved
.NET Core SDK 2.1.3 7838 Friday, December 15, 2017 Approved
.NET Core SDK 2.0.3 40259 Thursday, November 16, 2017 Approved
.NET Core SDK 2.0.2 89943 Wednesday, October 25, 2017 Approved
.NET Core SDK 2.0.0.20170906 22249 Wednesday, September 6, 2017 Approved
.NET Core SDK 2.0.0 26540 Tuesday, August 15, 2017 Approved
.NET Core SDK 1.1.14 6121 Tuesday, May 14, 2019 Approved
.NET Core SDK 1.1.13 284 Tuesday, March 12, 2019 Approved
.NET Core SDK 1.1.12 217 Wednesday, February 13, 2019 Approved
.NET Core SDK 1.1.8 4254 Sunday, March 18, 2018 Approved
.NET Core SDK 1.0.4 1.1.2 21989 Friday, June 30, 2017 Approved
.NET Core SDK 1.0.3 with .NET Core 1.0.4 & 1.1.1 1.1.1.20170508 5980 Monday, May 8, 2017 Approved
.NET Core 1.1.1 SDK - Installer 1.1.1 4242 Thursday, March 9, 2017 Approved
.NET Core 1.1 SDK - Installer 1.1 2067 Friday, December 30, 2016 Approved
.NET Core 1.0.3 SDK - Installer 1.0.3 2872 Friday, December 30, 2016 Approved
.NET Core SDK+CLI (Install) 1.0.0-RC2 1220 Wednesday, May 25, 2016 Exempted

Discussion for the .NET Core SDK Package

Ground Rules:

  • This discussion is only about .NET Core SDK and the .NET Core SDK 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 .NET Core SDK, 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