PowerShell: Install DotNet 3.5 – the Easy Way

$package="dotnet3.5"

# Install Chocolatey
if (!(Get-Command choco.exe -ErrorAction SilentlyContinue)) {
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))}

# Install the package
choco install $package -y

Leave a Reply

Your email address will not be published. Required fields are marked *