Skip to content

Code Analysis to validate views in ASP.NET #4290

@mikadumont

Description

@mikadumont

Direct customer ask copying here:

ReShaper for example offers additions errors and hints / code analytics. One of those validates the views in ASP.NET.
If you try to return a view that does not exist (see sample), ReSharper adds red squiggles, and you get an additional error. With vanilla VS20xx there is not hint at all.

image

You just don't get a hint that e.g. a cshtml file, doesn't exist. This should be a compile error, but it is now just a runtime error.

With ReSharper the line is marked as error and its red:

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions