Skip to content

Instantly share code, notes, and snippets.

@MovGP0
Last active February 10, 2016 20:39
Show Gist options
  • Save MovGP0/720c59c74a03afdd1bc0 to your computer and use it in GitHub Desktop.
Save MovGP0/720c59c74a03afdd1bc0 to your computer and use it in GitHub Desktop.
Working with .NET Execution Environment (DNX) Projects

Working with .NET Execution Environment (DNX) Projects

Preparing DNVM and DNU

Note: for an detailed introduction see Step-by-step installation instructions for getting DNX on your Windows machine

1 Install the .NET Version Manager (dnvm)

1a when already installed:

dnvm update-self
dnvm upgrade

1b when not installed:

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"

2 Update to the latest .NET Version

dnvm install latest -Unstable -Persistent

3 put the .NET Utility (dnu) to your path variable:

dnvm list
dnvm use 1.0.0-VERSION -a x64 -r clr -os win

Managing runtimes

List available runtimes

dnvm list

Install runtime

dnvm install latest -a x64 -r coreclr -os win -Ngen -u -g

Set Alias

dnvm alias default  1.0.0-rc2-16357 -a x64 -r clr -os win

Building

1 Check out the source using git

git clone https://github.com/somebody/project .\project

2 Navigate to the \project folder cd .\project

3 Restore dependencies

dnu restore

4 Build

dnu build ./src/project
dnu build ./test/project.test

Note: you can also use Visual Studio >=2015 for building the project.

External Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment