Remote folder access in VMWare virtual machine

I have the service installed on a Windows server (where I have a shared folder) and all the added machines are able to access it quickly.
The problem arises when, on a MacOS machine, there is a need to access a shared folder on the server from a Win 11 virtual machine on VMWare. This folder is to be opened in Visual Studio 2022. I manage to open the solution that is in that folder but then it slows down so much that it is impractical to use.
I tried sharing the folder from the Mac and installing the service in the virtual machine. The result is the same.
Can anyone help me?