dotnet / dotnet/aspnetcore

ASP.NET Core 2.3 Razor Class Library is 404 Not Found

Open
#60,401 1 comment 1 reaction 0 assignees View on GitHub
area-mvc
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Describe the bug

ASP.NET Core 2.1 Razor Class Library was displayed correctly. However, when I updated to ASP.NET Core 2.3, I got a 404 Not Found.

### Expected Behavior

I want to create a Razor Class Library in ASP.NET Core 2.3 as well as ASP.NET Core 2.1.

### Steps To Reproduce

see https://gitlab.com/masakura/aspnet-core-23-samples/-/tree/master/RazorClassLibrary

1. Creating a Web Application Project with Razor Class Library in ASP.NET Core 2.1
2. Run the project and verify that the Razor page of the RCL is displayed
3. Upgrade both projects to ASP.NET Core 2.3
4. 404 Not Found

### Exceptions (if any)

Downgrading the `Microsoft.AspNetCore.Mvc` package reference in the Razor Class Library to 2.1.3 works. As follows.

```xml




```

### .NET Version

.NET Framework 4.6.2 and .NET SDK 9

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.