79792993

Date: 2025-10-17 10:45:46
Score: 1.5
Natty:
Report link

The <App> parameter is utilized to locate the application's reference assembly. The issue stems from the fact that App is a Razor page rather than a class. Visual Studio occasionally fails to determine the namespace for a Razor page, which results in the error.

This has also been tested on VS 2026, with the same outcome.

Pending a resolution from Visual Studio, the workaround is to create the .cs code-behind file.

enter image description here

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: CSharpino