Hello my mendix project is automatically created under “Documents/...”. Unfortunately our Documents folders are automatically synced with OneDrive. This has severe disadvantages working with Studio: this bloats the system load dramatically due to constant OneDrive syncing of many small object and tmp files, used by mendix during runtime this creates errors: e.g. tmp-files created by mendix are unsupported to be synced via OneDrive – which causes OneDrive to permantently pop up error messages. Is there a way to assign a different project directory for an app? Or even a default location for all apps?
if you open an app within Studio Pro from the Team Server you can select the project folder. Once you have done that Studio Pro will automatically set that folder as “default”.
I know it’s a workaround but as far as I know there is no other option right now.
We like to track the version as part of the project name. Bumping the version was always problematic. I found a way to not only set the folder (and keep the sync) but change the version as well.
Export the app package (new snapshot of the data).
Change the name of the exported file to the target name (version in our case)
Launch Studio Pro
Open app locally
Navigate to the exported package and open it.
On the Import Package screen change the Disk location/App directory to any local folder. ONLY change the path up to the name – the name is the same as the package with -main appended. If there is something beyond -main delete it.
After it’s open make some changes, save all, and commit.
Now you have a local copy that is in sync and it’s not connected with one-drive.