Search Unity

CodeAnalysis Nuget Package version for Source Generators

Discussion in 'Documentation' started by papfe89, May 23, 2022.

  1. papfe89

    papfe89

    Joined:
    Jul 22, 2021
    Posts:
    2
    In the documentation on Source Generators (https://docs.unity3d.com/Manual/roslyn-analyzers.html) it says:
    "Your source generator must use Microsoft.CodeAnalysis 3.8 to work with Unity".

    Does it needs to be this exact version, or it can be a newer one too?

    There is another thread on the forum (https://forum.unity.com/threads/sou...when-upgrading-from-2020-3-to-2021-3.1277678/) in which it seems one should use a newer version of the package with a newer version of Unity. Is there any guidance on this?