The first step is to check if Unity recognizes these 2 core C # 6 functions from the MS website .
1 . Try the index initializer function:
private Dictionary<int, string> webErrors = new Dictionary<int, string>
{
[404] = "Page not Found",
[302] = "Page moved, but left a forwarding address.",
[500] = "The web server can't come out to play today."
};
2 . Row Interpolation function:
private string FirstName = "";
private string LastName = "";
public string FullName => $"{FirstName} {LastName}";
If they throw an error, then the problem is not , but in the simple keyword dynamic, but that Visual Studio cannot recognize the version of .NET installed by Unity.
Unity .
. .
1. → → → → → → (.Net 4.6 ).
2. → → → → → API ->.NET 4.6
3. Unity Editor Visual Studio. .
# . , dynamic . , # 4.
4. Visual Studio. . Visual Studio /.
5. # 6, , , Visual Studio Unity, 1 2, .
6. , # 6, - , Unity 2017.1 Unity 2017.2. .NET.
, Unity 2017.2 dynamic - . , GraphQL .