Project Generation Hook to remove references to Boo.Lang and UnityScript assemblies

November 26, 2014 ยท View on GitHub

using System;

using UnityEngine; using UnityEditor;

using SyntaxTree.VisualStudio.Unity.Bridge;

[InitializeOnLoad] public class ReferenceRemovalProjectHook { static ReferenceRemovalProjectHook() { const string references = "\r\n <Reference Include="Boo.Lang" />\r\n <Reference Include="UnityScript.Lang" />";

	ProjectFilesGenerator.ProjectFileGeneration += (string name, string content) =>
		content.Replace(references, "");
}

}