Created
November 26, 2014 13:15
-
-
Save jbevain/a982cc580fb796c93e4e to your computer and use it in GitHub Desktop.
Project Generation Hook to remove references to Boo.Lang and UnityScript assemblies
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 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, ""); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For anyone quickly looking, one of the forks has a working update.