Project Generation Hook to remove references to Boo.Lang and UnityScript assemblies
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, ""); | |
} | |
} |
This comment has been minimized.
This comment has been minimized.
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
This comment has been minimized.
Does not work for me in Unity 2019.3. But i did not know about this hook, will experiment
