MSBuildForUnity icon indicating copy to clipboard operation
MSBuildForUnity copied to clipboard

Fix Utilities.cs crash with Unix directory separator

Open tehwalris opened this issue 1 year ago • 0 comments

On macOS (and probably on Linux) GetAssetImporter crashes because it expects backslashes in paths, but gets forward slashes. As far as I can tell this code path is only triggered when there is a .csproj file in a Unity Package Manager dependency of your Unity project. This PR uses the platform-native separator character instead of hardcoded backslash.

tehwalris avatar Oct 31 '23 15:10 tehwalris