Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Unity 2020 and earlier #4

Open
DaZombieKiller opened this issue Nov 19, 2023 · 0 comments
Open

Support Unity 2020 and earlier #4

DaZombieKiller opened this issue Nov 19, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@DaZombieKiller
Copy link
Owner

DaZombieKiller commented Nov 19, 2023

Updating Roslyn:

  1. Delete everything in Editor/Data/Tools/Roslyn/ except CoreRun.exe
  2. Copy dotnet/shared/Microsoft.NETCore.App/<latest>/* into Editor/Data/Tools/Roslyn/
  3. Copy dotnet/sdk/<latest>/Roslyn/bincore/* into Editor/Data/Tools/Roslyn/

Patches (Editor/Data/Managed/UnityEditor.dll):

The resulting PDB files from a compilation also need to be converted to MDB. This can be performed using the pdb2mdb utility bundled with Mono (and therefore also bundled with Unity). It should be invoked through MonoBleedingEdge/bin/mono.exe and not directly, otherwise it will fail to locate Mono.Cecil.dll in the bundled GAC and not generate an MDB.

The following batch script demonstrates what should occur following a compilation:

cd Library\ScriptAssemblies
set MONO_ROOT=%UNITY_INSTALL_DIR%\Editor\Data\MonoBleedingEdge
for %%f in (*.pdb) do "%MONO_ROOT%\bin\mono.exe" "%MONO_ROOT%\lib\mono\4.5\pdb2mdb.exe" "%%~nf.dll"
@DaZombieKiller DaZombieKiller added enhancement New feature or request help wanted Extra attention is needed labels Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant