UIPath Resuable Code Best Practice

Ok,
found the workaround to the Git on Windows issue - nice and neat.

Recent versions of Git for Windows support handling of symbolic links; you just need to enable it during installation as described here:
https://stackoverflow.com/questions/5917249/git-symlinks-in-windows/16754068.

With that enabled, Scott’s suggestion does work using git(4W) without config changes (see note):

  • create symlink via mklink to expose shared Xaml folder visible in the UiStudio project root
  • git commit/push symlink to git/github like all other files
  • git clone/fetch via git4W and symlink is converted back to Windows properly

Result: shared composable Xaml files stored once in a common folder in the git repo & invoked from multiple UiPath projects that run successfully in both UiStudio and UiRobot. Sweet!

note: haven’t yet tested symlink handling via git fetch/pull; only tested via new repo clone.