Last active
December 18, 2018 17:31
-
-
Save sailro/8336e99df0580a28af995c121efcccf5 to your computer and use it in GitHub Desktop.
Remove 'latest'LangVersion added by Unity 2018.3 which is not supported by VS 2015
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Xml.Linq; | |
using UnityEditor; | |
#if ENABLE_VSTU | |
using SyntaxTree.VisualStudio.Unity.Bridge; | |
[InitializeOnLoad] | |
public class ProjectFileHook | |
{ | |
static ProjectFileHook() | |
{ | |
ProjectFilesGenerator.ProjectFileGeneration += (string name, string content) => | |
{ | |
return content.Replace("<LangVersion>latest</LangVersion>", string.Empty); | |
}; | |
} | |
} | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment