Skip to content

Instantly share code, notes, and snippets.

@jbevain
Created November 26, 2014 13:15

Revisions

  1. jbevain created this gist Nov 26, 2014.
    18 changes: 18 additions & 0 deletions ReferenceRemovalProjectHook.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    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, "");
    }
    }