Skip to content

Playing around with Visual Studio Code and MVC6 on Windows without touching the mouse.

Notifications You must be signed in to change notification settings

codepic/vs-code-mvc6-cmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

What's this?

It's just me out of curiosity playing around with Visual Studio Code, Chocolatey, Yeoman, DNX, MVC6 and what not.

Keyboard only

Trying to do it all without grabbing the mouse. Here we go.

Key combos

Open CMD = Ctrl-Shift-C

Day 1

Installing Chocolatey

  1. Install Visual Studio Code
  2. Open folder
  3. Open CMD
    • powershell_ise

      • $ Ctrl-N
  4. Issue the following command to install Chocolatey
$policy = Get-ExecutionPolicy -Scope CurrentUser
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
Set-ExecutionPolicy -ExecutionPolicy $policy -Scope CurrentUser
  1. Press F5 to execute
  2. Alt-F4 to close powershell
  3. exit to close command prompt

Install node (back in VS Code)

  1. Open CMD
  2. cd %AllUsersProfile%\chocolatey

  3. choco install node

Install dnx

  1. Open CMD
cmd > @powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';$wc=New-Object System.Net.WebClient;$wc.Proxy=[System.Net.WebRequest]::DefaultWebProxy;$wc.Proxy.Credentials=[System.Net.CredentialCache]::DefaultNetworkCredentials;Invoke-Expression ($wc.DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"
cmd > dnvm upgrade

Install Yeoman

  1. Open CMD
  2. npm install -g yo grunt-cli generator-aspnet bower

Use Yeoman to create asp.net mvc app

  1. yo aspnet

  2. select you app type and name
  3. cd <name_of_your_app>'

  4. dnu restore

  5. dnu build

  6. dnx web

Run MVC6

  1. Open CMD
  2. "%ProgramFiles%\Internet Explorer\iexplore.exe" http://localhost:5000/

  3. exit

Install Git

  1. Open CMD
  2. choco install git.install

  3. set path=C:\Program Files\Git\bin;%path%

  4. exit

Adding your project to Github

  1. git init
  2. git add .
  3. git commit -m "first commit"
  4. git remote add origin https://github.com/codepic/vs-code-mvc6-cmd.git
  5. git push -u origin master

About

Playing around with Visual Studio Code and MVC6 on Windows without touching the mouse.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published