Skip to content

Build a Blazor movie database app (Part 2 - Add and scaffold a model) dotnet ef migrations add InitialCreate gives error #35637

@xompax

Description

@xompax

Description

Hello Microsoft ASP.NET Core docs team and contributors,

While running through the "Build a Blazor movie database app" (Part 2 - Add and scaffold a model) I am recieving an error.

Specifically when running the following line:

dotnet ef migrations add InitialCreate gives error

I get the following error:

Build started...
Build failed. Use dotnet build to see the errors.

Also when viewing the file Components/Pages/MoviePages/Index.razor, I get the following text in Visual Studio Code when hovering over line 3

@using Microsoft.AspNetCore.Components.QuickGrid

which reads:

The type or namespace name 'QuickGrid' does not exist in the namespace 'Microsoft.AspNetCore.Components' (are you missing an assembly reference?)[CS0234](https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS0234))

I am not sure what I am doing wrong. I also tried installing various packages, and tried using .NET 8.0 and .NET 9.0 and have similar issues with each (at least I tried uninstalling the dotnet-sdk-8.0 and installing the dotnet-sdk-9.0 packages). See the attached log.txt from my Visual Studio Code terminal page.

log.txt

I am running on Fedora Linux XFCE version 42 x86_64 and using the latest version of the Visual Studio Code IDE I installed from the Microsoft RPM package repository from these instructions: https://code.visualstudio.com/docs/setup/linux#_rhel-fedora-and-centos-based-distributions

Thanks in advance for any help and guidance!

Page URL

https://learn.microsoft.com/en-us/aspnet/core/blazor/tutorials/movie-database-app/part-2?view=aspnetcore-9.0&pivots=vsc

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/tutorials/movie-database-app/part-2.md

Document ID

f9acc6f3-d6e2-ca66-9a66-7e0ea09aa38f

Platform Id

ef97ed5a-9570-fb55-a33b-46ed7e991772

Article author

@guardrex

Metadata

  • ID: f9acc6f3-d6e2-ca66-9a66-7e0ea09aa38f
  • PlatformId: ef97ed5a-9570-fb55-a33b-46ed7e991772
  • Service: aspnet-core
  • Sub-service: blazor

Related Issues

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions