Base solution for your next web application
Open Closed

RAD Tool add-migration Build Failed #4722


User avatar
0
manojreddy created

I'm trying to create Entity using RAD Tool. But its giving error Build Failed on Add-Migration and Update-Database.

But If I build the solution manually, it's building successfully and I'm able to add migration and update database.

Please let me know how can I debug this issue?


10 Answer(s)
  • User Avatar
    0
    yekalkan created

    Hi,

    If you can successfully build manually, problem may be related to visual studio. Is there any warning before "Running add-migration"?

    By the way, we've fixed the bug that causes DirectoryNotFoundException when a file not found. (you can update vs extension to 1.2.3) Could you please update it and try again?

  • User Avatar
    0
    manojreddy created

    I have tried clean, rebuild, restart visual studio, but I'm getting the same message mentioned in the previously attached image.

    There is no warning before "Running add-migration".

    I have updated to version 1.2.3.

    FYI: I have downloaded the separate 5.1.0 version project and for this on the same machine with the same visual studio, its working fine.

    My Scenario: I was using some previous version (< 5.1.0 ) and manually copied AspNetZeroRadTool folder to my existing project.

  • User Avatar
    0
    yekalkan created

    Unfortunately tool doesn't support pre-5.0 versions. However, you can use many parts of generated code by carrying them to your own project.

    Edit: version info corrected.

  • User Avatar
    0
    manojreddy created

    I have sent mail to <a href="mailto:[email protected]">[email protected]</a> regarding my query, please check.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @ManojReddy we got the project but it is not an AspNet Zero project. Also, RAD Tool supports only v5 or above versions.

    You can manually try to run migrations in Package Manager console by adding -Verbose parameter. In that way, you can see what is wrong with migration creation.

  • User Avatar
    0
    manojreddy created
    1. Its AspNet Zero project only, We have modified it a bit according to our requirement.

    2. When I'm creating Entity using RAD tool with Add-Migration and Update-Database enable. It gives the mentioned error in the image shared on this post. Although it creates all the required files. If I try to build from the visual studio with these changes, it gives no error. And I'm able to run Add-Migration and Update-Database manually.

    Is there any way to debug this issue? Or Add -Verbose parameter while creating Entity from RAD tool?

  • User Avatar
    0
    yekalkan created
    1. Its AspNet Zero project only, We have modified it a bit according to our requirement.

    Are you sure? You've sent us a project that only contains a textbox that auto-completes the words. And we didn't get what we supposed to do with it.

  • User Avatar
    0
    manojreddy created

    Big Sorry for the confusion :)

    I have resent it, Please check the mail <a href="mailto:[email protected]">[email protected]</a> again.

  • User Avatar
    0
    manojreddy created

    Any updates, please?

  • User Avatar
    0
    yekalkan created

    Many projects in your solution can not be loaded because they are empty. Therefore we couldn't even open it properly.

    It seems like your project is 5.0.0+, right?