Skip to content

Commit 49bdcc1

Browse files
committed
Do not hard code the path to the Assembly
1 parent 9cc79d7 commit 49bdcc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Tests/InputSystem/CoreTests_Editor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3398,7 +3398,7 @@ internal static Type Compile(string code, string typeName, string options = null
33983398
{
33993399
var codeProvider = CodeDomProvider.CreateProvider("CSharp");
34003400
var cp = new CompilerParameters { CompilerOptions = options };
3401-
cp.ReferencedAssemblies.Add($"{EditorApplication.applicationContentsPath}/Managed/UnityEngine/UnityEngine.CoreModule.dll");
3401+
cp.ReferencedAssemblies.Add(typeof(UnityEngine.Vector2).Assembly.Location);
34023402
cp.ReferencedAssemblies.Add("Library/ScriptAssemblies/Unity.InputSystem.dll");
34033403
#if UNITY_2022_1_OR_NEWER
34043404
// Currently there is are cross-references to netstandard, e.g. System.IEquatable<UnityEngine.Vector2>, System.IFormattable

0 commit comments

Comments
 (0)