You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 3, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: dox/content/step1/dos.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,20 @@
1
1
### Dos - Step 1
2
2
3
-
For this project, we'll also start with `project.json`, bringing in the dependencies we'll need.
3
+
For this project, we'll make sure our project file is `Dos.csproj`, and modify it the way we did [for Uno](./uno.html); we'll include one extra dependency to bring in Nancy.
Nancy strives to provide a Super-Duper-Happy-Path (SDHP), where all you have to do is follow their conventions, and everything will "just work." (You can also configure every aspect of it; it's only opinionated in its defaults.) One of these conventions is that the controllers inherit from `NancyModule`, and when they do, no further configuration is required. So, we create the `Modules` directory, and add `HomeModule.cs`, which looks like this:
Copy file name to clipboardExpand all lines: dox/content/step1/uno.md
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,23 @@ will not be using Entity Framework for anything, and though this application wil
5
5
ASP.NET Core MVC, we will not be using its membership features. Since all of that is out of scope for this effort, and
6
6
all of this is in the "web" template, we won't use it._ 😃
7
7
8
-
To start, we'll open `project.json` and add the dependencies we'll need:
8
+
To start, we'll make sure the `.csproj` file is named `Uno.csproj`. Then, under the first `PropertyGroup` item, we'll add a few items; when we're done, it should look like this:
9
9
10
10
[lang=text]
11
-
"dependencies": {
12
-
"Microsoft.AspNetCore.Owin": "1.0.0",
13
-
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0"
14
-
},
11
+
<PropertyGroup>
12
+
<AssemblyName>Uno</AssemblyName>
13
+
<VersionPrefix>1.0.0</VersionPrefix>
14
+
<OutputType>Exe</OutputType>
15
+
<TargetFramework>netcoreapp2.0</TargetFramework>
16
+
</PropertyGroup>
17
+
18
+
Then, we'll add a new section, `ItemGroup`, and two dependencies:
`dotnet restore` fixes up the actual packages. Next, we'll create the `Startup.cs` file. Within its `Configure` method, we'll do a very basic lambda to return a string:
0 commit comments