Hi there!
I was following the developer-setup guide and successfully created a tgz file. When I tried to import it using Unity Package Manager I get those errors:
Unity.SourceGenerators\Unity.MonoScriptGenerator.MonoScriptInfoGenerator\AssemblyMonoScriptTypes.gen.cs(5,20): error CS0101: The namespace ‘’ already contains a definition for ‘UnitySourceGeneratedAssemblyMonoScriptTypes_v1’
Unity.SourceGenerators\Unity.MonoScriptGenerator.MonoScriptInfoGenerator\AssemblyMonoScriptTypes.gen.cs(2,6): error CS0579: Duplicate ‘System.Runtime.CompilerServices.CompilerGenerated’ attribute
Unity.SourceGenerators\Unity.MonoScriptGenerator.MonoScriptInfoGenerator\AssemblyMonoScriptTypes.gen.cs(3,6): error CS0579: Duplicate ‘System.ComponentModel.EditorBrowsableAttribute’ attribute
Unity.SourceGenerators\Unity.MonoScriptGenerator.MonoScriptInfoGenerator\AssemblyMonoScriptTypes.gen.cs(4,6): error CS0579: Duplicate ‘System.CodeDom.Compiler.GeneratedCodeAttribute’ attribute
Unity.SourceGenerators\Unity.MonoScriptGenerator.MonoScriptInfoGenerator\AssemblyMonoScriptTypes.gen.cs(301,40): error CS0111: Type ‘UnitySourceGeneratedAssemblyMonoScriptTypes_v1’ already defines a member called ‘Get’ with the same parameter types
Unity.SourceGenerators\Unity.MonoScriptGenerator.MonoScriptInfoGenerator\AssemblyMonoScriptTypes.gen.cs(276,10): error CS0579: Duplicate ‘System.Runtime.InteropServices.StructLayout’ attribute
I was building the package using Unity 2022 as I want to try the new polygon clipping feature.
Any idea what can I do? Thanks a lot
My setup:
Unity 2022.3.20f1
Visual Studio 2022
cmake 3.28.3
dotnet 8.0.201