Coder Social home page Coder Social logo

vscode-aspnet5-linux's Introduction

Visual Studio Code Setup

For ASP.NET 5 on Linux Ubuntu

  1. Download and install Visual Studio Code
  • Instructions: https://code.visualstudio.com/Docs/setup

  • Under Home, create a folder called VSCode.

  • Extract downloaded zip file to this location

  • Create a link to launch Code from Terminal by typing code .

    sudo ln -s /home/parallels/VSCode/Code /usr/local/bin/code
    
  • Create a folder under Home called Source

    • Navigate to Source in Terminal and enter: code .
    • VS Code will open at this location
  1. Install ASP.NET 5 on Linux Ubuntu
  • Instructions: http://docs.asp.net/en/latest/getting-started/installing-on-linux.html

  • Install Mono:

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
    echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
    sudo apt-get update
    sudo apt-get install Mono-Complete
    
  • Install libuv

    sudo apt-get install automake libtool curl
    curl -sSL https://github.com/libuv/libuv/archive/v1.4.2.tar.gz | sudo tar zxfv - -C /usr/local/src
    cd /usr/local/src/libuv-1.4.2
    sudo sh autogen.sha
    sudo ./configure
    sudo make
    sudo make install
    sudo rm -rf /usr/local/src/libuv-1.4.2 && cd ~/
    sudo ldconfig
    
  • Install DotNet Version Manager: dnvm

curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.s

  • Enter: source /home/parallels/.dnx/dnvm/dnvm.sh
  • Run dnvm
  • Enter: dnvm upgrade
  1. Run console sample
  1. Run web sample
  1. Scaffold an ASP.NET Web API app using Yeoman
  • Install the node package manager: npm:

    sudo apt-get install nodejs-legacy npm

  • Install Yeoman, the asp.net generator, grunt and bower:

    sudo npm install -g yo grunt-cli generator-aspnet bower

  • Go to parent folder in Terminal and run yo aspnet

    • Pick Web API Application, enter as name: HelloWebApi
  • Run dnu restore, then run as before: dnx . kestrel

  • Open a browser and go to: http://localhost:5001/api/values

  • Press Enter to stop Kestrel

vscode-aspnet5-linux's People

Stargazers

 avatar  avatar Milan Rawal avatar Bhavya Kamboj avatar

Watchers

James Cloos avatar Anthony Sneed avatar  avatar

vscode-aspnet5-linux's Issues

with or without dnvm?

Hi, so ok dnvm is now "broken", the instructions fail at the point of installing it.
But it's still on github. Odd that they would leave it up there but hide the install script.

Would you be so kind as to fix this either with the archived dnvm or without dnvm?

I'm trying to get the most out of this without abandoning it entirely, using the instructions for Core, or the asp.net and Docker demo that you put together.

I found this:
https://github.com/natemcmaster/dnvm
is that an effective substitute install method for dnvm without using a container like Docker?

It's a shame to see good code broken, I'm sure this is a widespread problem.
Why did you need to use dnvm and can you accomplish the goal of this project without it?

thanks very much

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.