Microsoft .NET Core 2.1 SDK feature update 7

  • 1
  • 2
  • 3

2.1.701 | Updated: 05 Nov 2020

Downloads:

89

Downloads of v 2.1.701:

89

Software Author(s):

  • Microsoft

  • 1
  • 2
  • 3
Microsoft .NET Core 2.1 SDK feature update 7 2.1.701

  • 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

To install Microsoft .NET Core 2.1 SDK feature update 7, run the following command from the command line or from PowerShell:

>

To upgrade Microsoft .NET Core 2.1 SDK feature update 7, run the following command from the command line or from PowerShell:

>

To uninstall Microsoft .NET Core 2.1 SDK feature update 7, 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://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. Enter your internal repository url

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

4. Choose your deployment method:


choco upgrade dotnetcore-2.1-sdk-7xx -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 dotnetcore-2.1-sdk-7xx -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 dotnetcore-2.1-sdk-7xx installed
  win_chocolatey:
    name: dotnetcore-2.1-sdk-7xx
    state: present
    version: 2.1.701
    source: STEP 3 URL

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


chocolatey_package 'dotnetcore-2.1-sdk-7xx' do
  action    :install
  version  '2.1.701'
  source   'STEP 3 URL'
end

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


Chocolatey::Ensure-Package
(
    Name: dotnetcore-2.1-sdk-7xx,
    Version: 2.1.701,
    Source: STEP 3 URL
);

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


cChocoPackageInstaller dotnetcore-2.1-sdk-7xx
{
   Name     = 'dotnetcore-2.1-sdk-7xx'
   Ensure   = 'Present'
   Version  = '2.1.701'
   Source   = 'STEP 3 URL'
}

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


package { 'dotnetcore-2.1-sdk-7xx':
  provider => 'chocolatey',
  ensure   => '2.1.701',
  source   => 'STEP 3 URL',
}

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


salt '*' chocolatey.install dotnetcore-2.1-sdk-7xx version="2.1.701" 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.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved by moderator mkevenaar on 10 Nov 2020.

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\ChocolateyBeforeModify.ps1
$ErrorActionPreference = 'Stop'
Set-StrictMode -Version 2

$data = & (Join-Path -Path (Split-Path -Path $MyInvocation.MyCommand.Path) -ChildPath data.ps1)

$packageArgs = @{
    packageName    = $env:ChocolateyPackageName
    fileType       = 'EXE'
    silentArgs     = "/uninstall /quiet /log ""${Env:TEMP}\$($data.PackageName)-$(Get-Date -Format 'yyyyMMddHHmmss').log"""
    validExitCodes = @(0, 3010, 1605, 1614, 1641)
}

# 2.0 has " - " between "SDK" and version, unlike all later releases
# the bitness info is at the end, e.g. "(x64)"
$softwareName  = "Microsoft .NET Core SDK* $($data.SoftwareVersion) (*)"
[array]$keys = Get-UninstallRegistryKey -SoftwareName $softwareName `
    | Where-Object {
        # each SDK install has two entries, one "public", for the WiX Burn package, one hidden, for the underlying MSI
        # we need to use the "public" entry, which is what the user would see in Add/Remove Programs
        # https://docs.microsoft.com/en-us/windows/win32/msi/arpsystemcomponent
        -not $_.SystemComponent -eq 1
    }

# we may have two items here, one for x64, another for x86
$keys | ForEach-Object {
    # "C:\ProgramData\Package Cache\{c4615fd2-6841-49cb-bcd3-a2cd7bd74a85}\dotnet-sdk-2.0.0-win-x64.exe"  /uninstall
    # discard arguments (everyting after closing quote) and strip quotes
    $file = ($_.UninstallString -replace '(?<=".+")\s+.*$', '').Trim('"')
    Write-Verbose "Uninstalling using: $file"

    Uninstall-ChocolateyPackage @packageArgs -File $file
}
tools\ChocolateyInstall.ps1
$ErrorActionPreference = 'Stop'
Set-StrictMode -Version 2

$data = & (Join-Path -Path (Split-Path -Path $MyInvocation.MyCommand.Path) -ChildPath data.ps1)

$arguments = @{
    packageName = $data.PackageName
    silentArgs = "$($data.AdditionalArgumentsToInstaller) /install /quiet /norestart /log ""${Env:TEMP}\$($data.PackageName)-$(Get-Date -Format 'yyyyMMddHHmmss').log"""
    validExitCodes = @(
        0, # success
        3010 # success, restart required
    )
    url = $data.Url
    checksum = $data.Checksum
    checksumType = $data.ChecksumType
}
$arguments64 = @{
    url64 = $data.Url64
    checksum64 = $data.Checksum64
    checksumType64 = $data.ChecksumType64
}

Set-StrictMode -Off
Install-ChocolateyPackage @arguments @arguments64
tools\data.ps1
@{
    PackageName = 'dotnetcore-2.1-sdk-7xx'
    Url = 'https://download.visualstudio.microsoft.com/download/pr/0c727e75-f57f-4a71-90da-267206d72ee8/b0cdac2db823bd63073409d169e008f8/dotnet-sdk-2.1.701-win-x86.exe'
    Checksum = '94AD69AD07774059E544C678953E8F00682787035EEBA8E82FE9AD00E337245D38B989C78EDD128EBB36FE4262174EC7A1A113CF359E2D6DC657438BC82961D6'
    ChecksumType = 'sha512'
    Url64 = 'https://download.visualstudio.microsoft.com/download/pr/b0fa45ac-7c03-40a0-abf7-2e896a86c850/c9c50221e663b2c4219e0adff64818d1/dotnet-sdk-2.1.701-win-x64.exe'
    Checksum64 = 'E2429BE0EAF8BBCB51E2FB0B92E66A1C9BCABC0C5128811BED8341E18F9BE3B47DF894BA7EA0193D8C69C04379C3C5E0D5F26E6F64455D76D6B40CFB82B4A559'
    ChecksumType64 = 'sha512'
    AdditionalArgumentsToInstaller = $null
    SoftwareVersion = '2.1.701'
}

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.

Version Downloads Last Updated Status

Discussion for the Microsoft .NET Core 2.1 SDK feature update 7 Package

Ground Rules:

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