FastScriptReload icon indicating copy to clipboard operation
FastScriptReload copied to clipboard

Roslyn is missing when installing from Unity Package Manager from Git

Open lmProgramming opened this issue 9 months ago • 5 comments

Which makes the package throw error:

Failed to find entry-points: System.Exception: Could not resolve assembly 'Microsoft.CodeAnalysis.CSharp

Encountered on a fresh new project in Unity 6 (6000.0.38f1) Installing via .unitypackage works

lmProgramming avatar Feb 17 '25 20:02 lmProgramming

That's fine, I'm not sure why it happens (although I see it for other packages sometimes) - it shouldn't affect anything and error will be gone after you clear console

handzlikchris avatar Feb 18 '25 14:02 handzlikchris

In my case it didn't go away, even after many Unity restarts and getting the missing package from Nuget. And yes, this error didn't allow for FastScriptReload to work at all (the error was mentioning that it couldn't find the missing package). In the end I've installed your plugin via .unitypackage and it worked then and only then

lmProgramming avatar Feb 18 '25 16:02 lmProgramming

alright - thanks, I'll get it reopened. Maybe something changed with Unity 6

handzlikchris avatar Feb 18 '25 16:02 handzlikchris

I'm also seeing this issue and it looks to be related to Burst. If I turn off Burst compilation, it goes away.

NonPolynomialTim avatar Jul 10 '25 09:07 NonPolynomialTim

Also seeing this issue, it's preventing the editor from reloading changes to any of my scripts (whether in Play Mode or not).

I can also confirm that disabling Burst compilation appears to fix it. I think it must be Burst trying to process the Microsoft.CodeAnalysis.CSharp.FSR file and failing. Not sure what the best way to essentially tell Burst to ignore that is.

Ecksters avatar Nov 11 '25 04:11 Ecksters