deps.json does not exist

Agustín 0 Reputation points
2024-03-15T11:59:03.01+00:00

User's image

Hello everyone!! I am a junior programmer trying to make a project in .NET MAUI, but when it comes to scaffolding my database, I get the following error:

The specified deps.json [C:\Users\Developer\source\repos\MauiTest7\MauiTest7\bin\Debug\net7.0-android\MauiTest7.deps.json] does not exist

I have tried everything, rebuild project, clean, changing from version 7.0 to 8.0 and nothing.

I have pushed ChatGPT to the limit and it hasn't solved anything for me. I've been dealing with this for +5 hours and I've seen many forums but nothing has managed to solve the problem for me.

I'm a little desperate now, because I don't know what to do anymore and that's why I come to this forum. I hope someone can help me.

Thanks a lot!

Developer technologies .NET .NET MAUI
Developer technologies .NET Other
{count} votes

4 answers

Sort by: Most helpful
  1. yannick 5 Reputation points
    2024-03-26T14:40:23.6066667+00:00

    Getting same trouble after moving project to new folder.

    solved it by removing all /bin / obj /.vs folders.

    Rebuild all

    1 person found this answer helpful.
    0 comments No comments

  2. Bawkn 0 Reputation points
    2024-03-16T23:18:12.8866667+00:00

    hello :),

    I face the same issue as you. I'm not sure if what I'm saying is 100% correct or not. This is my first post, and I'm also a junior. However, I believe Maui doesn't create a deps.json file because it targets framework net8.0-ios/android, etc but not net8.0. At least, that's how I perceive it.

    Additionally, if I'm not mistaken, the official documentation suggests using sqlite-net-pcl.

    Furthermore, I'm not certain if this is feasible, but perhaps we could work around the migration generation by using another project, such as a console project, solely for the execution context?

    0 comments No comments

  3. henry hosken SI 0 Reputation points
    2024-07-09T00:29:08.61+00:00

    I had the same problem, I solved it by deleting the /bin /obj /.vs folders and then I recompiled the solution and solved the problem

    0 comments No comments

  4. Leon Jiang 0 Reputation points
    2025-05-27T10:01:39.2+00:00

    The solution is very easy, double click your solution name to enter the property setup file and in the first row you will see something like this:

    <TargetFrameworks>net9.0-android;net9.0-ios;net9.0-maccatalyst</TargetFrameworks>

    Delete all things in the middle and replace them with:

    <TargetFrameworks>net9.0-windows10.0.19041.0</TargetFrameworks>

    It maybe a little different on your computer, but basically this will work.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.