Skip to content

Commit 12904eb

Browse files
committed
Added UNITY_TEST_FRAMEWORK_1_7_OR_NEWER guard and UnityCoreClrExplicitDisabledAttributeShim.cs to make attribute usage possible
1 parent e02624e commit 12904eb

3 files changed

Lines changed: 30 additions & 0 deletions

File tree

com.unity.netcode.gameobjects/Tests/Runtime/Unity.Netcode.Runtime.Tests.asmdef

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@
4747
"name": "Unity",
4848
"expression": "6000.1.0a1",
4949
"define": "HOSTNAME_RESOLUTION_AVAILABLE"
50+
},
51+
{
52+
"name": "com.unity.test-framework",
53+
"expression": "1.7.0",
54+
"define": "UNITY_TEST_FRAMEWORK_1_7_OR_NEWER"
5055
}
5156
],
5257
"noEngineReferences": false
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#if !UNITY_TEST_FRAMEWORK_1_7_OR_NEWER
2+
using System;
3+
4+
namespace UnityEngine.TestTools
5+
{
6+
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
7+
internal sealed class UnityCoreClrExplicitDisabledAttribute : Attribute
8+
{
9+
public UnityCoreClrExplicitDisabledAttribute(string jiraIssue, string reason = null)
10+
{
11+
}
12+
}
13+
}
14+
#endif

com.unity.netcode.gameobjects/Tests/Runtime/UnityCoreClrExplicitDisabledAttributeShim.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)