Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

Getting compile error when trying to add migrations

Hi, I'm learning how to create E-Shops according to the manual, but now I'm stuck on a bug that I can't figure out. I create a custom migration but it throws me "build failed". Does anyone know how to resolve this?
I am putting a piece of translation of the manual below this text. Thank you in advance.

Translation:
(
Now we will create our first custom migration. Let's run
Package Manager Console from Tools ->
NuGet Package Manager. As Default project
let's select our EShop.Data project as the Default Default.

In the Package Manager Console, add a new migration with the command
Add-Migration. The name of the migration, under which we
We will choose the name of the partial migration class. For example.
Identity. So the whole command is:
Add-Migration Identity:
Source: Lekce 2 - E-shop v ASP.NET Core MVC - Identity, databáze a layout

Translated with www.DeepL.com/Translator (free version)
)

Image
 
It's impossible to resolve when all you get is "Build failed". There must be more information somewhere. Perhaps there is a PM logfile somewhere, or maybe there is a verbose mode that spits out details.
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom