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.

Developer technologies .NET .NET Runtime
Developer technologies .NET Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    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

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.