Skip to content

Instantly share code, notes, and snippets.

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, "");
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.