Search Unity

HELP! Can someone help me out with this error?

Discussion in 'Scripting' started by DieterLibotton, Oct 3, 2021.

  1. DieterLibotton

    DieterLibotton

    Joined:
    Feb 20, 2021
    Posts:
    2
    I am getting this error the whole time:
    Library\PackageCache\com.unity.package-manager-ui@2.0.3\Editor\AssemblyInfo.cs(6,1): error CS1022: Type or namespace definition, or end-of-file expected

    I don't know what to do. Im just starting out. I got allready a few things back in order. But what can I do?
    Someone please help?

    This is in the script when i open it.


    using System.Runtime.CompilerServices;
    using UnityEditor.Experimental.UIElements;

    [assembly: InternalsVisibleTo("Unity.PackageManagerCaptain.Editor")]
    [assembly: InternalsVisibleTo("Unity.PackageManagerUI.EditorTests")]
    }
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,481
    That final bracket has no business being there obviously. As it says, end of file expected there.
     
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,727
    @MelvMay I've seen many questions like this about UnityEngine.UI in the past 48 hrs or so... this user solved it by rolling back. Is there an issue with the latest Visual Studio integration?

    https://forum.unity.com/threads/unityeditor-ui-csproj-not-found.1177432/

    EDIT: perhaps not... I think I misread the OP (in this thread's) question, but it does seem odd that a package manager file suddenly has an extra brace.