Search Issue Tracker
Fixed in 2018.2.X
Fixed in 2018.1.X
Votes
0
Found in
2018.1.0b5
Issue ID
996370
Regression
No
[WSA] Cannot retrieve reference rewriter mappings for ApiCompatibilityLevel.NET_Standard_2_0! when building under IL2CPP
Description
Steps to reproduce:
1. Open the attached project
2. Switch platform to Windows Store
3. Build
4. Observe the error
Actual results: Unable to build the project
Expected results: Build the project
Note:
.NET Standart introduced in 2018.1
Unable to test against 2018.2 due to another bug
Reproduced with: 2018.1.0b6
Fixed in: 2018.2.0a4
Backported to: 2018.1.0b10
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
samlabs_lea
Sep 09, 2018 19:46
I believe that this is the same as the issue that I am experiencing.
When the project is set to .NET Standard 2.0 with both IL2CPP and .NET backends; on Window Universal App; a bunch of symbols are not being added when building the project. NET_STANDARD_2_0 is one such symbol.
When building to other platforms (iOS/Mac Standalone) the symbols seem to be properly defined.
To verify this issue simply use the following logic:
using UnityEngine;
public class TestScript
{
[RuntimeInitializeOnLoadMethod]
public static void Run()
{
#if NET_STANDARD_2_0
Debug.Log("Works as expected.");
#else
Debug.Log("Not working :/");
#endif
}
}