Skip to content

Instantly share code, notes, and snippets.

@sailro
Last active December 18, 2018 17:31
Show Gist options
  • Save sailro/8336e99df0580a28af995c121efcccf5 to your computer and use it in GitHub Desktop.
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
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