Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Could not load file Unity.SourceGenerators.dll

Discussion in 'Entity Component System' started by stayall, Mar 3, 2023.

  1. stayall

    stayall

    Joined:
    Feb 8, 2023
    Posts:
    1
    I am trying to learn following the tutorials and documents, but I have been getting the following warnings and somewhat lacking on data types and methods from the tutorials, such as the WorldTransform, localTransform in Unity.Transforms.


    Warning CS8032 An instance of analyzer Unity.MonoScriptGenerator.MonoScriptInfoGenerator cannot be created from E:\Unity2\2022.2.0b16\Editor\Data\Tools\Unity.SourceGenerators\Unity.SourceGenerators.dll: Could not load file or assembly 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. . Assembly-CSharp E:\Unity2\2022.2.0b16\Editor\Data\Tools\Unity.SourceGenerators\Unity.SourceGenerators.dll 1 Active


    I confirmed the path has this Unity.SourceGenerators.dll file and the latest Rider also gives warnings with it.

    I have tried with lower versions of .NET and Trying to change the API compatibility Level option to .NET Framework in Edit > Project Settings > Player > Other Settings has no effect



    Unity version:2022.2.0b16
    Entities Packege version: 1.0.0-exp.12
    VS2022 version:17.5.0
    .NET SDK version:
    7.0.200 [C:\Program Files\dotnet\sdk]
    7.0.201 [C:\Program Files\dotnet\sdk]
     
    leonlanghans likes this.
  2. Foulax

    Foulax

    Joined:
    Mar 3, 2023
    Posts:
    1
    Same error appeared to me today.
    Was working fine yesterday evening.

    I didn't touch anything, loaded Unity today, created a new script and the warning is present

    Unity version:2022.2.8f1