Created
December 1, 2015 19:47
-
-
Save theparticleman/f7440577c08dbd744a5c to your computer and use it in GitHub Desktop.
.NET Core Vagrant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
$script = <<-SCRIPT | |
sh -c 'echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list' | |
apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893 | |
apt-get update | |
apt-get install dotnet -y | |
SCRIPT | |
config.vm.provision "shell", inline: $script | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Once you
vagrant up
, do avagrant ssh
to ssh in to the VM. Once in, run the following commands:dotnet new
- this sets up a new "Hello World" projectdotnet restore
- restores nuget packagesdotnet run
- runs the projectYou should get an output of "Hello world"
All the info comes from this site: https://dotnet.github.io/getting-started/