FastScriptReload icon indicating copy to clipboard operation
FastScriptReload copied to clipboard

It was not possible to find any compatible framework version - compilation failed

Open akarpinski1 opened this issue 2 years ago • 7 comments

image

Don't have log any more and for the moment can't install plugin again to regenerate it.

Installed components (apart form standard Unity): image

I also have 2 Unity editor versions installed: image

Please tell me what other data you would need or what to check?

akarpinski1 avatar Apr 04 '23 17:04 akarpinski1

This isn't an FSR problem. Check out this StackOverflow answer on a possible approach to fix your issue. https://stackoverflow.com/a/58702215

Chizaruu avatar Apr 04 '23 19:04 Chizaruu

This isn't an FSR problem. Check out this StackOverflow answer on a possible approach to fix your issue. https://stackoverflow.com/a/58702215

It's not a problem with my setup. I don't have any problems at all with Unity normal workflow and compilation, this problem is only happening when using FSR to compile code. Alternative solution "Hot Reload" also works fine.

akarpinski1 avatar Apr 04 '23 19:04 akarpinski1

Thanks @akarpinski1 - tool should use existing CSC (compiler) that Unity uses and shouldn't throw this exception.

One thing that I though could happen is wrong compiler version picked up (maybe due to multiple versions).

If you can recreate the issue and add a debug breakpoint here: (or log parameters) FastScriptReload.Editor.Compilation.DotnetExeDynamicCompilation.ExecuteDotnetExeCompilation

I'd be interested to know what's in string dotnetExePath string cscDll

and then to see what versions of those files you have

2023-04-05 08_58_35-Window

I've seen it before but couldn't reproduce. As @Chizaruu mentioned I think it'll be some specific environemnt issue

handzlikchris avatar Apr 05 '23 07:04 handzlikchris

Hello,

Both files points to what is shipped with editor in use for given project: image

and version of those files: image image

akarpinski1 avatar Apr 17 '23 09:04 akarpinski1

I also double checked this on second PC. Same editor version (2020.3.44f1), Same behavior - exact same error.

akarpinski1 avatar Apr 17 '23 09:04 akarpinski1

I had the same issue and solved it by installing .NET Core 2.0.0. https://dotnet.microsoft.com/en-us/download/dotnet/2.0

LovelyRed avatar Apr 24 '23 10:04 LovelyRed

I had the same issue and solved it by installing .NET Core 2.0.0. https://dotnet.microsoft.com/en-us/download/dotnet/2.0

same error, i dont know why, but it works

xzhovo avatar Dec 07 '23 02:12 xzhovo