Unity + Server monorepo in macos

Working in Unity as frontend + .net 10 as backend in MacOs. How do I make one monorepo to easily refactor server and unity at the sametime? when attaching other project as adding 'Exisiting Folder' makes other project as just IL code. I want oneshot to refactor both server and client at the sametime.

0
1 comment

Hello Fruit Drawing ,

Thank you for reaching Rider Forum.

There is no ready-made solution for such a scenario. 

However, You may want to try smt like below: 

root.sln
  -> UnityProject/UnityProject.sln (auto-generated by Unity, but not used in this scenario)
  -> UnityProject/UnityGenerated1.csproj
...
  -> UnityProject/UnityGeneratedN.csproj
  -> Server/ServerApp1.csproj
...
  -> Server/ServerAppN.csproj

Manual operations which are required in this scenario:

  • initially you'd need to add all Unity-generated csproj-s to the root.sln
  • during time, if you add or remove any asmdef, you'd need to manually update the root.sln

If adding or removing asmdef is rear, then it would not be that problematic.

Besides, you may want to check this repository: 

Unity Monorepo

Please find instructions for it here

Hope, my reply was helpful. 

0

Please sign in to leave a comment.