Can't get assembly definitions to make a meaningful difference.

My code takes 25 seconds to recompile and I want to to be faster. So I started using assembly definitions. But it still takes exactly the same amount of time for each code change. So to test this I created a folder Assets/test which has test.cs and the assembly definition asset called ‘test’. test.cs is just the default c# file. For good measure I also went into a new empty scene. I would expect when I make a change in test.cs it would recompile instantly right? Since its in its own assembly it doesn’t need to recompile anything else. Yet it still takes 25 seconds to ‘reload script assemblies’ every time.

Please help me figure out what I’m doing wrong

Unity version 2021.3.5f1 Windows VSCode


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace test {   
    public class test : MonoBehaviour
        // Start is called before the first frame update
        void Start()
            print("please help");   

This miraculasly started working :slight_smile:

It may have been fixed by

  • restarting unity
  • restarting computer
  • recreating csproj files

but im honestly not sure