diff --git a/src/NuGetForUnity/Editor/Configuration/NugetForUnityPluginId.cs b/src/NuGetForUnity/Editor/Configuration/NugetForUnityPluginId.cs index 2144b969..5cc2eddd 100644 --- a/src/NuGetForUnity/Editor/Configuration/NugetForUnityPluginId.cs +++ b/src/NuGetForUnity/Editor/Configuration/NugetForUnityPluginId.cs @@ -18,7 +18,13 @@ internal sealed class NugetForUnityPluginId : IEquatable internal NugetForUnityPluginId([NotNull] string name, [NotNull] string path) { Name = name; - Path = System.IO.Path.IsPathRooted(path) ? PathHelper.GetRelativePath(UnityPathHelper.AbsoluteProjectPath, path) : path; + if (System.IO.Path.IsPathRooted(path)) + { + path = PathHelper.GetRelativePath(UnityPathHelper.AbsoluteProjectPath, path); + } + + // We make sure forward slashes are used, so it works on non Windows platforms as well + Path = path.Replace("\\", "/"); } ///