2015-10-08 21:41:04 +00:00
# .NET Command Line Interface
2015-10-21 22:47:45 +00:00
Build Status
------------
| |Ubuntu 14.04 |Windows |Mac OS X |
2015-10-30 21:26:28 +00:00
|---------|:------:|:------:|:------:|
|**Debug**|[![Build Status](http://dotnet-ci.cloudapp.net/buildStatus/icon?job=Private/dotnet_cli_debug_ubuntu)](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_debug_ubuntu/)|[![Build Status](http://dotnet-ci.cloudapp.net/buildStatus/icon?job=Private/dotnet_cli_debug_windows_nt)](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_debug_windows_nt/)|[![Build Status](http://dotnet-ci.cloudapp.net/buildStatus/icon?job=Private/dotnet_cli_debug_osx)](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_debug_osx/) |
|**Release**|[![Build Status](http://dotnet-ci.cloudapp.net/buildStatus/icon?job=Private/dotnet_cli_release_ubuntu)](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_release_ubuntu/)|[![Build Status](http://dotnet-ci.cloudapp.net/buildStatus/icon?job=Private/dotnet_cli_release_windows_nt)](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_release_windows_nt/)|[![Build Status](http://dotnet-ci.cloudapp.net/buildStatus/icon?job=Private/dotnet_cli_release_osx)](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_release_osx/) |
2015-10-21 22:47:45 +00:00
2015-11-01 04:19:15 +00:00
## Prerequisites
2015-10-21 22:47:45 +00:00
2015-11-01 04:19:15 +00:00
In order to build dotnet-cli, you need the following installed on you machine
### For Windows
1. Visual Studio 2015 with Web Development Tools
* Beta8 is available here and should work: http://www.microsoft.com/en-us/download/details.aspx?id=49442
* Install `WebToolsExtensionsVS14.msi` and `DotNetVersionManager-x64.msi`
2. CMake (available from https://cmake.org/) is required to build the native host `corehost`
2015-10-21 22:47:45 +00:00
2015-10-08 21:41:04 +00:00
## Building/Running
1. Run `build.cmd` or `build.sh` from the root
2015-10-20 04:38:27 +00:00
2. Use `artifacts/{os}-{arch}/stage2/dotnet` to try out the `dotnet` command. You can also add `artifacts/{os}-{arch}/stage2` to the PATH if you want to run `dotnet` from anywhere.
2015-10-08 21:41:04 +00:00
2015-10-19 08:47:45 +00:00
## Visual Studio Code
* You can also use Visual Studo code https://code.visualstudio.com/
## A simple test
2015-10-08 21:49:39 +00:00
Note: The explicit `--framework` and `--runtime` switches will definitely be going away :)
1. `cd test\TestApp`
2015-10-19 08:47:45 +00:00
2. `dotnet publish --framework dnxcore50 --runtime win7-x64`