Aspnetcore.docs: 'Movie' does not exist in the namespace

Created on 1 Jun 2018  Â·  2Comments  Â·  Source: dotnet/AspNetCore.Docs

Using the code as shown to add validation to the movie.cs, the build fails and says that the namespace we're working in doesn't define 'Movie'.
I was able to use the validation code from the MVC web app tutorial to move forward, but replacing all the code with the #if MovieDatRatingDA code results in all grey text in Visual Studio's text editor.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

P4 Source - Docs.ms

Most helpful comment

@oxwilder that's a great error message. VS should help you find your mistake.

All 2 comments

@oxwilder that's a great error message. VS should help you find your mistake.

In this file, would moving the region outside of the namespace resolve it, or does this file have uses in other places? When I tried to reproduce, I know that once I included the namespace everything was gravy.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AnthonyMastrean picture AnthonyMastrean  Â·  3Comments

wgutierrezr picture wgutierrezr  Â·  3Comments

royshouvik picture royshouvik  Â·  3Comments

danroth27 picture danroth27  Â·  3Comments

sonichanxiao picture sonichanxiao  Â·  3Comments