MSB1009: Project file does not exist, Switch: database

Oratile Motaung 0 Reputation points
2023-10-30T14:23:19.6166667+00:00

My web application is not showing my images because there is an issue with my databaseUser's image

I then fixed this as the issue was Caps. When I tried to run 'dotnet ef database update' this is the error I received:

User's image

Found some duplications and fixed them but the error above still continued, I then tried to run 'dotnet restore database' and received the error below:

User's image

PS: I ran the 'dotnet restore database' on the same path where I created the migrations and where I've been running the updates

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
SQL Server Migration Assistant
SQL Server Migration Assistant
A Microsoft tool designed to automate database migration to SQL Server from Access, DB2, MySQL, Oracle, and SAP ASE.
507 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2023-10-30T14:23:19.6266667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error message "MSB1009: Project file does not exist" indicates that the project file for the database project cannot be found. This could be due to a few reasons, such as the project file being deleted or moved, or the path to the project file being incorrect.

    To fix this issue, you should ensure that the project file exists in the correct location and that the path to the project file is correct. You can also try running the command from the directory that contains the project file.

    If you have already fixed any issues with capitalization and removed any duplications, then the issue may be related to the path to the project file. Double-check that the path is correct and try running the command again.


    References:

    0 comments No comments