This project is part of ASP.NET vNext. You can find samples, documentation and getting started instructions for ASP.NET vNext at the Home repo.
###Getting Started
The first thing we need to do is setup the tools required to build and run an application.
- To setup
kvmon your machine find getting started instructions at the Home repo. - Clone MusicStore repository, if you have not already.
- Open a command prompt and cd
\src\<AppFolder>\ - Run
kpm restoreto restore all the necessary packages and generate project files Note:kpm restorecurrently works only on Desktop flavor. If you intend to use Core CLR, you should get Desktop flavor, executekpm restoreand then switch to Core CLR - [Helios]:
4.
Helios.cmdto launch the app on IISExpress (Application started at URL http://localhost:5001/). - [SelfHost]:
5. Run
k web(Application started at URL http://localhost:5002/) - [CustomHost]:
6. Run
k run(This hosts the app in a console application - Application started at URL http://localhost:5003/)
By default the app runs on desktop CLR. To switch to run the app on CoreCLR follow the steps below
- On the command line, execute
kvm install [BuildNumber] -svrc50 - This command will install core clr flavor of this KRE build.
- If you want to run on IIS/IISExpress against core clr, open k.ini and update KRE_FLAVOR to CORECLR and follow steps for running the application from 'Run the application' section
- If you want to run on SelfHost against core clr, follow steps for running the application from 'Run the application' section
- Edit the project.json to include the package you want to install.
- Do a
kpm restore- This will restore the package in the project.
- Application is started on different ports on different hosts. To change the port or URL modify
Helios.cmdor project.json commands section in case of self-host and customhost. - Comment out k.ini file content by adding a semicolon (;) in front of each line. This will allow ctrl-f5 work correctly if you haven’t installed
kvm.