We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c75931 + 9cb0923 commit 1ab2c91Copy full SHA for 1ab2c91
Scripts/Editor/Utils/AsmDefUtility.cs
@@ -218,10 +218,10 @@ public static AssemblyDefinitionAsset GetAsmDefInFolder(string path)
218
string[] asmDefsGuids = AssetDatabase.FindAssets("t:asmdef", new[] { path });
219
for (int i = 0; i < asmDefsGuids.Length; i++)
220
{
221
- string asmDefPath = AssetDatabase.GUIDToAssetPath(asmDefsGuids[i]);
+ string asmDefPath = AssetDatabase.GUIDToAssetPath(asmDefsGuids[i]).ToPathWithConsistentSeparators();
222
string asmDefDirectory = Path.GetDirectoryName(asmDefPath);
223
224
- if (asmDefDirectory == path)
+ if (string.Equals(asmDefDirectory, path, StringComparison.Ordinal))
225
return AssetDatabase.LoadAssetAtPath<AssemblyDefinitionAsset>(asmDefPath);
226
}
227
0 commit comments