diff --git a/README.md b/README.md index bf19b9636a96..c91faba03c47 100644 --- a/README.md +++ b/README.md @@ -2,17 +2,19 @@ In the next version of ASP.NET we are working with multiple teams around Microsoft to create a lean, composable .NET stack that provides a familiar and modern framework for web and cloud scenarios. -The Preview repository is a place for the ASP.NET Insiders to log issues and discuss ASP.NET vNext with the product team. It contains some samples and some documentation in the [wiki](https://github.com/aspnet/Home/wiki). +The Home repository is the starting point for people to learn about ASP.NET vNext, it contains samples and [documentation](https://github.com/aspnet/Home/wiki) to help folks get started and learn more about what we are doing. +The Home repository is the starting point for people to learn about ASP.NET vNext, it contains samples and [documentation](https://github.com/aspnet/Home/wiki) to help folks get started and learn more about what we are doing. -The samples provided are designed to show some of the features of the new framework as well as setting up a sandbox for you to try out new drops of functionality as they come out. The NuGet.config file in the repo points to a private MyGet feed that has all the packages being developed. The feed is updated every time a full build succeeds. +The samples provided are designed to show some of the features of the new framework as well as setting up a sandbox for you to try out some of the new features. The NuGet.config file in the repo points to a MyGet feed that has all the packages being developed. The feed is updated every time a full build succeeds. #Getting Started -The first thing we need to do is setup the tools required to build and run an application. +The first thing we need to do is setup the tools required to build and run an application. We will start out by getting the [K Version Manager (KVM)](https://github.com/aspnet/Home/wiki/version-manager) * Clone the repository -* On the command line execute ```kvm setup``` -* This command will download the latest version of the SDK and put it on your path so that you can run the rest of the commands in the readme. If you want to know more about what this is doing then you can read the [KVM page](https://github.com/aspnet/Home/wiki/version-manager) of the wiki. +* On the command line execute ```kvmsetup.cmd``` +* This command will setup your environment, getting it ready to install a version of the runtime. It adds kvm to your path and puts it in your user profile. +* Execute ```kvm upgrade```. This command will download the latest version of the SDK and put it on your user profile ready to use. You could also install a specific version here instead of getting the latest, see the [KVM page](https://github.com/aspnet/Home/wiki/version-manager) * Navigate to samples\HelloConsole * Run ```K run``` * You should see some compiler output and a message saying "Hello World" @@ -23,25 +25,25 @@ The first thing we need to do is setup the tools required to build and run an ap These samples, in this repo, are just basic starting points for you to experiment with features. Since there is no File->New Project we thought some simple samples to take the place of scaffolding would be convenient. -+ [ConsoleApp](https://github.com/aspnet/Home/tree/master/samples/ConsoleApp). This is just basic console app if you want to use it as a starting point. Use it the same as the console app from our earlier samples ++ [ConsoleApp](https://github.com/aspnet/Home/tree/master/samples/ConsoleApp). This is just basic console app if you want to use it as a starting point. + [HelloWeb](https://github.com/aspnet/Home/tree/master/samples/HelloWeb). This is a minimal startup class that shows welcome page and static file middleware. This is mostly for you to run through the steps in the readme and make sure you have everything setup and working correctly. + [HelloWebFx](https://github.com/aspnet/Home/tree/master/samples/HelloWebFx). This sample is a basic MVC app. It is not designed to show all the functionality of the new web stack, but to give you a starting point to play with features. -**NOTE: The samples are pinned to a specific version of the packages. If you want to try the latest builds then update the project.json and replace the number at the end of the version with a '\*', so '0.1-alpha-267' becomes '0.1-alpha-\*', and then run ```K restore``` to pull down the latest packages** +**NOTE: The samples are pinned to a specific version of the packages. If you want to try the latest builds then update the project.json and replace the last part of the version with a '\*', so '0.1-alpha-build-267' becomes '0.1-alpha-\*', and then run ```kpm restore``` to pull down the latest packages** ##Feature Samples The [Entropy repo](https://github.com/aspnet/Entropy) contains samples of specific features in isolation. Each directory contains just enough code to show an aspect of a feature. ##Application Samples -[MVC Music Store](https://github.com/aspnet/MusicStore) and [BugTracker](https://github.com/aspnet/BugTracker) application are both being ported. Each of these have their own repository that you can look at. Both of these should be mostly working, but some changes are still being made. +[MVC Music Store](https://github.com/aspnet/MusicStore) and [BugTracker](https://github.com/aspnet/BugTracker) application are both being ported. Each of these have their own repository that you can look at. #Running the samples ##Running HelloWeb 1. Clone the repository -2. Change directory to Preview\Samples\HelloWeb -3. Run ```K restore``` +2. Change directory to Samples\HelloWeb +3. Run ```kpm restore``` 4. You should see a bunch of output as all the dependencies of the app are downloaded from MyGet. The K commands all operate on the app that is in the current directory. 5. Run ```K web``` 6. You should see build output and a message to show the site is now started @@ -50,7 +52,7 @@ The [Entropy repo](https://github.com/aspnet/Entropy) contains samples of specif 9. Navigate to "http://localhost:5001/image.jpg" 10. You should see an image served with the static file middleware -If you can do all of the above then everything should be working. You can try out the WebFx sample now to see some more of the new stack. You should run ```K restore``` before using any sample for the first time. +If you can do all of the above then everything should be working. You can try out the WebFx sample now to see some more of the new stack. You should run ```kpm restore``` before using any sample for the first time. #Switching to Core CLR diff --git a/kvm.ps1 b/kvm.ps1 index 822bddc22278..dc3d21cdd42a 100644 --- a/kvm.ps1 +++ b/kvm.ps1 @@ -63,8 +63,7 @@ function Kvm-Global-Setup { $arguments = "& '$scriptPath' setup $(Requested-Switches) -persistent" Start-Process "$psHome\powershell.exe" -Verb runAs -ArgumentList $arguments -Wait Write-Host "Setup complete" - Kvm-Alias-List - Kvm-List + Kvm-Help break } @@ -99,8 +98,8 @@ function Kvm-Global-Setup { $machineKreHome = Change-Path $machineKreHome $globalKrePath ($globalKrePath) [Environment]::SetEnvironmentVariable("KRE_HOME", $machineKreHome, [System.EnvironmentVariableTarget]::Machine) -# $persistent = $false -# Kvm-Global-Upgrade + Write-Host "Press any key to continue ..." + $x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown,AllowCtrlC") } function Kvm-Global-Upgrade { @@ -155,7 +154,8 @@ param( $kreFile = "$kreFolder\$kreFullName.nupkg" If (Test-Path $kreFolder) { - Remove-Item $kreFolder -Force -Recurse + Write-Host "$kreFullName already installed." + return; } Write-Host "Downloading" $kreFullName "from https://www.myget.org/F/aspnetvnext/api/v2/" diff --git a/kvmsetup.cmd b/kvmsetup.cmd index 051c1c606e1b..d91eb940fe10 100644 --- a/kvmsetup.cmd +++ b/kvmsetup.cmd @@ -1 +1,2 @@ @"%~dp0kvm.cmd" setup +pause