dotnet-cli

A 5-post collection

Creating RazorPage apps using the CLI

While I was creating a recent test application with Razor Pages, I found myself clicking the "new file" button in VS Code too many times when I wanted to add a new Page. I really love the .NET CLI and with every release, there seems to be something I discover that has been added to either the core functionality or the templates. Running dotnet new this time around I fell upon the page template... Within your application, run dotnet new page and a new Razor Page is added to to the project. See the -h|--help some items removed for brevity $ dotnet new page -h -n, --name The name for the output being created. If no name is specified, the...


dotnet CLI Tab completions now available in 2.0

Tab completion on the command line is like having a superpower for some of the CLI tools we have at our fingertips. With so many commands, paramaters and/or options; it's nice to be able to type a few characters and tap the {Tab} key and get some help. I've gotten spoiled even with directory searching by just hitting tab now in zsh and having the list popup and getting the "pick list" to choose the right one. A long standing issue for the .NET CLI for the command line lovers was this missing feature. Wait no longer, with the 2.0 release you can now enable it with by adding some config to your .bashrc, .zshrc or even Powershell...


Exploring the new dotnet cli

Note: At the time of this post, the dotnet cli version being used 1.0.0-rc4-004771 available from GitHub dotnet/cli repo - https://github.com/dotnet/core/blob/master/release-notes/rc4-download.md I have been a long time fan of the yeoman generator for ASP.NET Core and still I would argue that it's still the most complete project creation utility for cross platform development. With that said, the dotnet cli has really raised the bar for command line parity development tooling when comparing similar capabilities from other languages or frameworks where CLI is the first tool. Historically, as you know, Visual Studio is the standard for "File->New Project" or anything to do with a .NET solution or...


Setting up ASP.NET Core debugging in VS Code

UPDATE: Now Version 1.0 of Visual Studio Released - Same steps apply for Version 1.0. In the most recent ASP.NET Community Standup (http://live.asp.net), Damian walked through the steps of getting RC2 debugging setup inside of Visual Studio Code - Insiders Build. Here are the steps. Install the dotnet SDK for your OS Go to https://github.com/dotnet/cli#installers-and-binaries and select the proper link for your OS in the .NET Core SDK Installer column and install this. As a note, if you have a previous version of this installed you may need to manually remove the dotnet folder from the installation location prior as the installer will not overwrite, and it fails silently....


Preparing for dotnet cli

There was a ton of cool that came out of the Connect()(http://connect2015.visualstudio.com/) event. For me the announcement of ASP.NET 5 going RC was a great milestone. Go Live License with support Linux, Windows, OS X Installers available - http://get.asp.net Checkout Cleanshave available on GitHub an ASP.NET 5 & Angular 2 template called . There were a bunch of other items announced such as open sourcing Visual Studio Code (http://github.com/microsoft/vscode) and showing off Glimpse. What's Next One of the things shown was the dotnet cli. This is the next iteration of the command line tooling for .NET. Currently we are typing dnx run for console applications or dnx web...