I do nothing in code but have "error CS0246" and now even new projects have same problem

Full problem:

Library\PackageCache\com.unity.test-framework@1.1.27\UnityEngine.TestRunner\TestRunner\RemoteHelpers\RemoteTestResultDataWithTestData.cs(12,16): error CS0246: The type or namespace name ‘RemoteTestResultData’ could not be found (are you missing a using directive or an assembly reference?)

and second is same but anoter file:

Library\PackageCache\com.unity.test-framework@1.1.27\UnityEngine.TestRunner\TestRunner\RemoteHelpers\RemoteTestResultDataWithTestData.cs(13,16): error CS0246: The type or namespace name ‘RemoteTestData’ could not be found (are you missing a using directive or an assembly reference?)

And Code, which I didn’t touch:

using System;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework.Interfaces;
using UnityEngine.TestRunner.NUnitExtensions.Runner;

namespace UnityEngine.TestRunner.TestLaunchers
{
    [Serializable]
    internal class RemoteTestResultDataWithTestData
    {
        public RemoteTestResultData[] results;
        public RemoteTestData[] tests;
    }
}
1 Like

Find the solution. !!Big thanks to Kurt-Dekker and his link!!

Info for descendants:
So, in this case I deleted package - “visualstudio” (btw I use another programs for code) at Package Manager in Unity or \packages\manifest.json

You can have prolems with other packages, more details in link above! gl