ERROR: Cannot instance script because the project assembly is not loaded. Script: res://Scripts/Bird.cs

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Shadowblood

Why is this happening

We might be able to help you more if you showed how your project is setup, maybe even the code which could be causing this error.

Ertain | 2019-08-14 21:05

:bust_in_silhouette: Reply From: Jector404

How I fixed this issue was manually editing “old_project_name.sln” and “old_project_name.csproj”.

  1. “oldname.sln” and “oldname.csproj” need to be renamed to “newname.sln” and “newprojectname.csproj”.
  2. Open the .csproj file. Change “RootNamespace” to the new name with the spaces removed if you have any, and change “AssemblyName” to the new name with the spaces kept.
  3. Open the .sln and change the “oldname” on line 3 to “newname” (there are two places you need to make this change).

I believe this is case-sensitive, although I haven’t tested it.

Tested on v3.2.2 mono.