Skip to content

Fixing Azure Function Core Tools download issues for Visual Studio

Naren Soni edited this page Nov 30, 2018 · 7 revisions

The purpose of this page to help you resolve the issues caused by VS not being able to download the latest version of Azure Functions Core Tools. You can resolve it in one of the three ways.

  1. Force Visual Studio to download on start up.
  2. Execute an Automated script.
  3. Manually download and extract all the artifacts.

Force Visual Studio to download on start up.

Steps:

  1. Make sure the latest version of Azure Functions and Web Jobs Tools version is installed.
    1. Open Visual Studio, Go to Tools -> Extension and Updates -> Updates
    2. Select "Azure Functions and Web Jobs Tools", Click update
  2. Close all instances of VS
  3. Open %localappdata%\AzureFunctionsTools
  4. Rename %localappdata%\AzureFunctionsTools to AzureFunctionsTools_bak
  5. Rename %userprofile%\.templateengine to templateengine_bak
  6. Go to File -> New -> Project -> Azure Functions -> Click OK
    • You should see the New Project dialog box.
  7. Wait for the update to complete

Execute an Automated script

  1. Make sure the latest version of Azure Functions and Web Jobs Tools version is installed.
    1. Open Visual Studio, Go to Tools -> Extension and Updates -> Updates
    2. Select "Azure Functions and Web Jobs Tools", Click update
  2. Close all instances of VS
  3. Download and execute this Powershell script: GetCoreToolsForVS.
  4. Open Visual Studio, Go to File -> New -> Project -> Azure Functions -> Click OK
    • You should see the New Project dialog box.
  5. Wait for the update to complete. (This should finish very quickly now).

Manually download and extract all the artifacts.

  1. Make sure the latest version of Azure Functions and Web Jobs Tools version is installed.
    1. Open Visual Studio, Go to Tools -> Extension and Updates -> Updates
    2. Select "Azure Functions and Web Jobs Tools", Click update
  2. Close all instances of VS.
  3. Open Core tools feed.
  4. Make note of v1 and v2 release versions.
  5. Download the cli.zip, itemTemplates and projectTemplates for the corresponding release.
  6. Create the following file structure
    • %localappdata%\AzureFunctionsTools\Releases\{releaseVersion}\cli\{extracted cli zip contents}
    • %localappdata%\AzureFunctionsTools\Releases\{releaseVersion}\templates\ItemTemplates.nupkg
    • %localappdata%\AzureFunctionsTools\Releases\{releaseVersion}\templates\ProjectTemplates.nupkg
  7. Rename %userprofile%\.templateengine to templateengine_bak or Delete %userprofile%\.templateengine contents
  8. Go to File -> New -> Project -> Azure Functions -> Click OK
    • You should see the New Project dialog box.
  9. Wait for the update to complete. (This should finish very quickly now).