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

AspNetZeroRadTool on OS x #4644


User avatar
0
BlueBrackets created

When I run the radtool like described in [https://aspnetzero.com/Documents/Development-Guide-Rad-Tool-Mac-Linux]) an error occurs in the file creation.

Instead of creating the file "src\BlueBrackets.Core\Products\Product.cs" it creates a file "AspNetZeroRadTool..\src\BlueBrackets.Core\Products\Product.cs" in the folder aspnet-core

Instead of creating the file "src\BlueBrackets.Application\Products\ProductsAppService.cs" it creates a file "AspNetZeroRadTool..\src\BlueBrackets.Application\Products\ProductsAppService.cs" in the folder aspnet-core

And then the process aborts with an exception

Unhandled Exception: System.IO.FileNotFoundException: Could not find file '/Volumes/Macintosh SSD 500Gb/Projects/BlueBrackets/aspnet-core/AspNetZeroRadTool..\src\BlueBrackets.Core\Authorization\AppPermissions.cs'. at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks) at System.IO.File.InternalReadAllText(String path, Encoding encoding) at System.IO.File.ReadAllText(String path) at AspNetZeroRadTool.FileWizards.FileModifiers.FileModifier.nWuTVQWImuPgaxdC7jU(Object ) at AspNetZeroRadTool.FileWizards.FileModifiers.FileModifier.GetFileToModify(String filePath) at AspNetZeroRadTool.FileWizards.FileModifiers.Server.AppPermissionsFileModifier.Modify() at AspNetZeroRadTool.ServerSideHandler.sPYOZNWCtCInRDTK7mN(Object ) at AspNetZeroRadTool.ServerSideHandler.Handle() at AspNetZeroRadTool.AspNetZeroRadTool.fS6mXiCGOWTD9kvWpdx(Object ) at AspNetZeroRadTool.AspNetZeroRadTool.Run() at AspNetZeroRadTool.Program.Main(String[] args)

The Product.json is in the folder AspNetZeroRadTool and the command is given from this folder location.


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @BlueBrackets,

    We will test it again and fix it. I have created an issue here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/804">https://github.com/aspnetzero/aspnet-ze ... issues/804</a>.

  • User Avatar
    0
    yekalkan created

    Hi @BlueBrackets

    We have fixed it. You can download a new project and try again, or simply copy aspnetzeroradtool.dll to your project.

    Unfortunately, auto add-migration and update database is disabled for mac. You can run them manually.

  • User Avatar
    0
    BlueBrackets created

    Hello @yekalkan,

    I've updated my solution with the new assembly en tried to run it again. The result is better but not working 100%, the new source files are not created although the log says they are. The modified files are actually correctly modified. I've also run it with the sudo command but makes no difference.

    This is the loginfo from terminal

    iMac:AspNetZeroRadTool rob$ dotnet aspnetzeroradtool.dll Product.json -> Entity is being generated. -> AppService is being generated. -> ..\src\BlueBrackets.Core\Authorization\AppPermissions.cs is being modified. -> ..\src\BlueBrackets.Core\Authorization\AppAuthorizationProvider.cs is being modified. -> Consts is being generated. -> ..\src\BlueBrackets.EntityFrameworkCore\EntityFrameworkCore\BlueBracketsDbContext.cs is being modified. -> AppServiceInterface is being generated. -> Dtos.EntityDto is being generated. -> Dtos.CreateOrEditDto is being generated. -> Dtos.GetAllInput is being generated. -> ..\src\BlueBrackets.Application\CustomDtoMapper.cs is being modified. Running add-migration... Could not run add-migration

  • User Avatar
    0
    yekalkan created

    Hi,

    Can you disable add-migration and update-database in json file and try again? (setting values false)

    File creation was fine in my tests. I'll check it again.

  • User Avatar
    0
    BlueBrackets created

    Hi @yekalkan,

    It is working, the version control didn't show the new files created but were on disk. Thanks for your support!