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 |
|---------|:------:|:------:|:------:|:------:|:-------:|:-------:|
|**Debug**|[![Build Status](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_debug_ubuntu/badge/icon)](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_debug_ubuntu/)|[![Build Status](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_debug_windows_nt/badge/icon)](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_debug_windows_nt/)|[![Build Status](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_debug_osx/badge/icon)](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_debug_osx/) |
|**Release**|[![Build Status](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_release_ubuntu/badge/icon)](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_release_ubuntu/)|[![Build Status](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_release_windows_nt/badge/icon)](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_release_windows_nt/)|[![Build Status](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_release_osx/badge/icon)](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_release_osx/) |
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
## Notes
2015-10-19 08:47:45 +00:00
Right now the CLI uses [DNX ](https://github.com/aspnet/dnx ) for NuGet restore.
## Visual Studio
2015-10-08 21:41:04 +00:00
* Requires VS 2015 with Web Development Tools installed to open in VS
2015-10-19 08:47:45 +00:00
* Beta8 is available here and should work: http://www.microsoft.com/en-us/download/details.aspx?id=49442
2015-10-08 22:34:41 +00:00
* Install `WebToolsExtensionsVS14.msi` and `DotNetVersionManager-x64.msi`
2015-10-08 21:41:04 +00:00
* Requires that you have a DNX installed (the build script _should_ set it up for you though)
* Compilation is not required before building, but you must run `dnu restore` (which comes from the DNX commands) after changing dependencies. If you add/remove dependencies in VS, it will run it for you
2015-10-08 21:49:39 +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`