Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

“ASP.NET Zero Power Tools (v1.7.2.1)” doesn't work in Aspnet Core & Angular V6.6.0 #6447


User avatar
0
limingjun2018 created

Today I downloaded Aspnet Core & Angular V6.6.0 and did the steps introduced in "Getting Started" of the documentation. Then, expected changes happened in the database and the browser, everything looked good.

I installed the “ASP.NET Zero Power Tools (v1.7.2.1)” to Visual Studio 2017 and then according to the video course in the youtube.com, I clicked the menu Tools(T)→Asp.net zero→Create an Entity, opened a dialog to create an entity. After giving the namespace name, entity name and other options and added a property "Name", I pressed the button "Generate", but no console window was opened, no entity was added, and, in fact, nothing happened.

To tell the truth, in December 2018, I used “ASP.NET Zero Power Tools (v1.7.1)" in project "aspnet core & jQuery" in Visual Studio 2017, and everything worked very normally.

I don't know anybody else has encountered this problem.

Update: 1) “ASP.NET Zero Power Tools (v1.7.2.1)" works normally in project "Asp.net Core MVC & jQuery (v6.5.0)" . 2) “ASP.NET Zero Power Tools (v1.7.2.1)" cannot work in project "Asp.net Core MVC & jQuery (v6.6.0)" . After clicking the menu "Tools(T) ->Asp.Net Zero->Create an Entity", a dialog named "Create an Entity" appears. Filling in it some necessary fields, clicking the button "generate", nothing happens.


14 Answer(s)
  • User Avatar
    0
    yekalkan created

    I've tried to reproduce your issue but couldn't succeed. See screenshot below.

    Can you share a screenshot of tool UI when clicking generate button doesn't trigger anything?

  • User Avatar
    0
    limingjun2018 created

    Sorry, I couldn't give you a screenshot because no console window was opened and nothing happened. Fortunately, I could give you a video to show the details as the following URL.

    https://v.youku.com/v_show/id_XNDA1NTIzMzgzNg==.html

    the video of the problem

  • User Avatar
    0
    limingjun2018 created

    Could you open the video?

  • User Avatar
    0
    yekalkan created

    Yes, but it didn't help much.

    I've downloaded Jquery / angular / angular-merged v6.6.0 projects and rad tool successfully work on them.

    Could you compare the files in "aspnet-core/AspNetZeroRadTool/" folders in v6.5.0 and v6.6.0 solutions? inform me if there is any difference.

    We're going to release a new version today. Update it as well.

  • User Avatar
    0
    limingjun2018 created

    Thank you for reply.

    Today I updated rad power tool to 1.7.2.2 and used it in angular / angular-merged v6.6.0 projects. After clicking the button "Generate", no console window was shown and no entity was added to the *.Core project.

    However, I had a new discovery. After Clicking Tool(T) -> Asp.Net Zero -> Re-generate an Entity, a dialog "pick an entity" was opened. Clicking the dropdown list, then the former entities I tried to generate but failed generating were shown in the dropdown list.

    I compared the files in "aspnet-core/AspNetZeroRadTool/" folders in v6.5.0 and v6.6.0 solutions. There is no difference.

  • User Avatar
    0
    yekalkan created

    Clicking the dropdown list, then the former entities I tried to generate but failed generating were shown in the dropdown list.

    I didn't get it.

    You picked an entity from list, then tried to regenerate it, and nothing happened when you press generate button? like "create an entity" ?

  • User Avatar
    0
    yekalkan created

    By the way,

    It seems like your entities are saved. So you can manually start the generation from command line. This will help you until we fix this issue.

    To run it manually;

    Go to "aspnet-core/AspNetZeroRadTool/" directory and open command line there. Then type "dotnet AspNetZeroRadTool.dll TestNamespace.TestObject.json" command.

  • User Avatar
    0
    limingjun2018 created

    Thank you for your reply.

    After much effort, I thought I found the real reason. The problem was due to that the directory path of the "aspnet-core/AspNetZeroRadTool/" had special characters (e.g., space character, &). If deleting the special characters, everything will work normally.

    Is this a problem or just by design?

  • User Avatar
    0
    yekalkan created

    Problem. This should be fixed in next release.

  • User Avatar
    0
    yekalkan created

    v1.7.2.3 released. Can you confirm that the bug is resolved?

  • User Avatar
    0
    limingjun2018 created

    Sorry,this problem still exists. Just now, I used v1.7.2.3 and v6.6.1, the path of the solution had special characters(e.g., space, &),the above phenomenon appeared again.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @limingjun2018

    Did you have a chance to try this with latest version of RAD Tool ?

  • User Avatar
    1
    tadams created

    I just downloaded the extension to Visual Studio 2022. I then ran the command line dotnet AspNetZeroRadTool.dll TestNamespace.TestObject.json as noted above. I was informed that .Net Core 2.2.0 was not installed and it listed out the versions that I do have installed. So I downloaded .Net Core SDK 2.2.0 and ran the command again and it worked without issues. I think this was happening in the GUI as well, however, the error was caught and so it just created the entity.

    So, for those having issue, please make sure you have .Net Core SDK 2.2.0 installed and it will work as expected.

  • User Avatar
    0
    Kaarlaid created

    @tadams - many thanks, this solved the same issue I was having just now.