Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Updates to "Using Angular 2 with ASP.NET Core" #198

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Right click on `wwwroot` folder, `Add New Item` and create the `index.html` file

```

For ASP.NET Core to serve static files, we need to add StaticFiles middleware in the **Configure** method of the `Startup.cs` page. Ensure that packages are restored properly.
For ASP.NET Core to serve static files, we need to add StaticFiles middleware in the **Configure** method of the `Startup.cs` page. Ensure the NuGet package `Microsoft.AspNetCore.StaticFiles` is installed that packages are restored properly.

`project.json` is redesigned to make it better, we have StaticFiles middleware to serve static assets like HTML, JS files etc.
```C#
Expand Down Expand Up @@ -66,7 +66,7 @@ public void Configure(IApplicationBuilder app)
"imports": [
"dotnet5.6",
"portable-net45+win8"
]
]serv
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrpmorris Is this valid JSON or a typo?

}
},

Expand Down