Cannot Copy a file on a path with .NET Core in MAC

Asif Javaid Chughtai 41 Reputation points
2023-06-08T13:18:08.83+00:00

Hi Guys,

We are developing a worker service in .NET Core on MAC machine. On the start of service we are copying some of the necessary files on the given path. Its all working fine in Windows machine in release mode and working great and deployed on the Partner Center. However in MAC machine, the worker service is copying the files successfully in DEBUG mode but it is not copying the files in RELEASE mode. We are not sure why it is not working in RELEASE mode. Can anyone guide us how can we fix this issue on the MAC M1 Machine?

Thank you.

Asif.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,265 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,109 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 53,501 Reputation points
    2023-06-08T15:30:58.31+00:00

    you don't give us much to go on. no sample code, no error message, no info on how the service is started.

    My guess is file permission or missing environment variables. How are you hosting the service on the Mac? Mac being Berkley unix uses launchd rather than systemd.

    0 comments No comments