dotnet / dotnet/AspNetCore.Docs
using a locally published web app
- Dominant language
- C#
- Stars
- 13.1k
- Forks
- 24.6k
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 97
Description
[EDIT by guardrex to fix the code blocks]
### Description
Your document is hard to follow.
The following code does not work:
```csharp
public class ProductsController : Controller
{
public IActionResult Details(int id)
{
return ControllerContext.MyDisplayRouteInfo(id);
}
}
```
I get a CS1061 error.
I have added the package to the project's csproj file:
```xml
net8.0
enable
enable
```
### Page URL
https://learn.microsoft.com/en-us/aspnet/core/mvc/controllers/routing?view=aspnetcore-8.0&preserve-view=true
### Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/mvc/controllers/routing.md
### Document ID
7838ccec-c8e8-9baa-2b3e-220b2af5fc58
### Article author
@tdykstra
Contributor guide
Assessment
This issue has not been assessed yet.