2018년 12월 21일 금요일

[Unity] Invalid option 'latest' for /langversion; must be ISO-1, ISO-2, Default or integer in range 1 to 6



2018.3 에서 Scripting Runtime Version 옵션을
.NET 4.x Equivalent 로 했을 경우 빌드가 안되는 문제가 있는데
원인은 제가 가지고 있는 Visual Studio 2015 에 C# 7 이 없기 때문입니다.


수정은 VS2015 에서
Project > Assembly-CSharp Properties...
Build > Advenced... > Language Version > C# 6.0
으로 변경해주시면 됩니다.

Assembly-CSharp 와 Assembly-CSharp-Editor 둘 다 해주세요~


혹시나 Properties 를 들어가려고 하는데 깜빡 하면서 켜지지 않으실 때엔

Tools > Options > Tools for Unity > General 에
Access to project properties 옵션이 False 로 되어 있는데 True 로 변경하고 VS2015 를 껐다가 다시 켜주세요.


VS2017 은
https://docs.microsoft.com/ko-kr/visualstudio/cross-platform/unity-scripting-upgrade?view=vs-2017
에서 확인