Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.