Created
February 6, 2016 00:19
-
-
Save sailro/3548b751faf821dbef7c to your computer and use it in GitHub Desktop.
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; | |
using UnityEditor; | |
using SyntaxTree.VisualStudio.Unity.Bridge; | |
using UnityEngine; | |
[InitializeOnLoad] | |
public class LangRemover { | |
static LangRemover() | |
{ | |
ProjectFilesGenerator.ProjectFileGeneration += (string name, string content) => | |
{ | |
// This will remove the language restriction to C# 4 | |
return content.Replace("<LangVersion Condition=\" '$(VisualStudioVersion)' != '10.0' \">4</LangVersion>", string.Empty); | |
}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment