Updating home repo samples to use latest bits from dev branch feed
1. Updated samples to use Kestrel for cross plat 2. Updated "configurations" in project.json to "frameworks" 3. Updated readme to include instructions on Kestrel
This commit is contained in:
parent
2e1fb8f019
commit
90a19ee27b
|
|
@ -1,13 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<packageSources>
|
||||
<add key="AspNetVNext" value="https://www.myget.org/F/aspnetvnext/" />
|
||||
<add key="AspNetVNext" value="https://www.myget.org/F/aspnetvnext/api/v2" />
|
||||
<add key="NuGet.org" value="https://nuget.org/api/v2/" />
|
||||
</packageSources>
|
||||
<packageSourceCredentials>
|
||||
<AspNetVNext>
|
||||
<add key="Username" value="aspnetreadonly" />
|
||||
<add key="ClearTextPassword" value="4d8a2d9c-7b80-4162-9978-47e918c9658c" />
|
||||
</AspNetVNext>
|
||||
</packageSourceCredentials>
|
||||
</configuration>
|
||||
11
README.md
11
README.md
|
|
@ -18,7 +18,7 @@ These are the current minimum requirements, they do not necesarilly represent ou
|
|||
* .NET 4.5.1 for hosting in IIS
|
||||
|
||||
### OSX/Linux
|
||||
* Mono >= 3.4.1 - Currently this means compiling Mono from source from https://github.com/mono/mono
|
||||
* Mono >= 3.4.1 - Currently this means compiling Mono from source from https://github.com/mono/mono (Note: See instructions below to install the Homebrew formula that can install the required mono)
|
||||
* On Linux, you may need to run `mozroots --import --sync` after installing mono
|
||||
* bash or zsh and curl
|
||||
|
||||
|
|
@ -31,6 +31,7 @@ The easiest way to get the KVM on Windows is to run the following command:
|
|||
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/master/kvminstall.ps1'))"
|
||||
```
|
||||
or on OSX:
|
||||
|
||||
Mono and KVM (K Version manager) required to develop & run next generation ASP.NET applications on OSX is available as a Homebrew formula. To install the necessary development tools:
|
||||
|
||||
* Open a terminal on your MAC
|
||||
|
|
@ -107,11 +108,11 @@ The [Entropy repo](https://github.com/aspnet/Entropy) contains samples of specif
|
|||
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```
|
||||
5. Run ```K web``` to run on WebListener. Or run ```K Kestrel``` to run on Mono.
|
||||
6. You should see build output and a message to show the site is now started
|
||||
7. Navigate to "http://localhost:5001"
|
||||
7. Navigate to "http://localhost:5001" or "http://localhost:5004" in case of Mono
|
||||
8. You should see the welcome page
|
||||
9. Navigate to "http://localhost:5001/image.jpg"
|
||||
9. Navigate to "http://localhost:5001/image.jpg" or "http://localhost:5004/image.img" in case of Mono.
|
||||
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 ```kpm restore``` before using any sample for the first time.
|
||||
|
|
@ -122,7 +123,7 @@ If you can do all of the above then everything should be working. You can try ou
|
|||
By default when running the applications you are running against Desktop CLR (4.5), you can change that using the KVM command.
|
||||
|
||||
1. Run ```kvm install 0.1-alpha-build-0446 -svrc50``` This command gets the latest Core CLR version of the k runtime and sets it as your default. The -svrc50 switch tells it to use Core CLR, you can use -svr50 to target desktop again.
|
||||
2. Run ```K web```
|
||||
2. Run ```K web``` to run on WebListener. Or run ```K Kestrel``` to run on Mono.
|
||||
3. The first line of your output should say "Loaded Module: klr.core45.dll" instead of "Loaded Module: klr.net45.dll"
|
||||
4. The HelloWeb app should work the same as when running on Desktop CLR.
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"dependencies": {
|
||||
"System.Console": "4.0.0.0"
|
||||
},
|
||||
"configurations": {
|
||||
"frameworks": {
|
||||
"net45": {},
|
||||
"k10": {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ using Microsoft.AspNet.Builder;
|
|||
using Microsoft.AspNet.Routing;
|
||||
using Microsoft.Framework.DependencyInjection;
|
||||
|
||||
namespace KWebStartup
|
||||
namespace HelloMvc
|
||||
{
|
||||
public class Startup
|
||||
{
|
||||
|
|
@ -20,4 +20,4 @@ namespace KWebStartup
|
|||
app.UseWelcomePage();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,21 +1,17 @@
|
|||
{
|
||||
"version": "0.1-alpha-*",
|
||||
"dependencies": {
|
||||
"Microsoft.AspNet.Diagnostics": "0.1-alpha-build-0682",
|
||||
"Microsoft.AspNet.Hosting": "0.1-alpha-build-0572",
|
||||
"Microsoft.AspNet.Mvc": "0.1-alpha-build-1268",
|
||||
"Microsoft.AspNet.Server.WebListener": "0.1-alpha-build-0520"
|
||||
},
|
||||
"commands": {
|
||||
"web": "Microsoft.AspNet.Hosting server=Microsoft.AspNet.Server.WebListener server.urls=http://localhost:5001"
|
||||
},
|
||||
"configurations": {
|
||||
"net45": {
|
||||
"dependencies": {
|
||||
"System.Runtime": "",
|
||||
"System.ComponentModel.DataAnnotations": ""
|
||||
}
|
||||
"version": "1.0.0-*",
|
||||
"dependencies": {
|
||||
"Microsoft.AspNet.Diagnostics": "1.0.0-*",
|
||||
"Microsoft.AspNet.Hosting": "1.0.0-*",
|
||||
"Microsoft.AspNet.Mvc": "6.0.0-*",
|
||||
"Microsoft.AspNet.Server.WebListener": "1.0.0-*"
|
||||
},
|
||||
"k10": {}
|
||||
}
|
||||
"commands": {
|
||||
"web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.urls http://localhost:5001",
|
||||
"Kestrel": "Microsoft.AspNet.Hosting --server Kestrel --server.urls http://localhost:5004"
|
||||
},
|
||||
"frameworks": {
|
||||
"net45": {},
|
||||
"k10": {}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,16 +1,18 @@
|
|||
{
|
||||
"version": "0.1-alpha-*",
|
||||
"dependencies": {
|
||||
"Microsoft.AspNet.Diagnostics": "0.1-alpha-build-0682",
|
||||
"Microsoft.AspNet.Hosting": "0.1-alpha-build-0572",
|
||||
"Microsoft.AspNet.Server.WebListener": "0.1-alpha-build-0520",
|
||||
"Microsoft.AspNet.StaticFiles": "0.1-alpha-build-0443"
|
||||
},
|
||||
"commands": {
|
||||
"web": "Microsoft.AspNet.Hosting server=Microsoft.AspNet.Server.WebListener server.urls=http://localhost:5001"
|
||||
},
|
||||
"configurations": {
|
||||
"net45": {},
|
||||
"k10": {}
|
||||
}
|
||||
"version": "1.0.0-*",
|
||||
"dependencies": {
|
||||
"Kestrel": "1.0.0-*",
|
||||
"Microsoft.AspNet.Diagnostics": "1.0.0-*",
|
||||
"Microsoft.AspNet.Hosting": "1.0.0-*",
|
||||
"Microsoft.AspNet.Server.WebListener": "1.0.0-*",
|
||||
"Microsoft.AspNet.StaticFiles": "1.0.0-*"
|
||||
},
|
||||
"commands": {
|
||||
"web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.urls http://localhost:5001",
|
||||
"Kestrel": "Microsoft.AspNet.Hosting --server Kestrel --server.urls http://localhost:5004"
|
||||
},
|
||||
"frameworks": {
|
||||
"net45": {},
|
||||
"k10": {}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue