Skip to content

Instantly share code, notes, and snippets.

@sailro
Created February 6, 2016 00:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sailro/3548b751faf821dbef7c to your computer and use it in GitHub Desktop.
Save sailro/3548b751faf821dbef7c to your computer and use it in GitHub Desktop.
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