Skip to content

Instantly share code, notes, and snippets.

Created November 26, 2014 13:15
  • Star 13 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Project Generation Hook to remove references to Boo.Lang and UnityScript assemblies
using System;
using UnityEngine;
using UnityEditor;
using SyntaxTree.VisualStudio.Unity.Bridge;
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, "");
Copy link

Does not work for me in Unity 2019.3. But i did not know about this hook, will experiment

Copy link

m4a4 commented Aug 9, 2020

For anyone quickly looking, one of the forks has a working update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment