I have code in asp.net core RC2.
public class Program { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public static void Main(string[] args) { string str = "My first string was "; TypeReference tr = __makeref(str); IntPtr ptr = **(IntPtr**)(&tr); } }
The error is ErrorCS0518Predefined type 'System.TypedReference' is not defined or imported.
I need to change project.json file. But how to make it working?