Search code examples
c#unity-game-enginenamespaces

missing namespace Cysharp


I am a little confused. There is a project and different scripts in it. In one of the scripts, a dependency on UniTask:

using System.Threading;
using Cysharp.Threading.Tasks;

And it works fine:

enter image description here

Created another script, but now i got missing namespace error:

enter image description here

As we can see on 1st screenshot: unitask is imported in project. What i have already done: rebuild solution via VS, but id didnt help.

Any advices please?


Solution

  • In VS: project - sub folder References - Manage NuGet Packages - add your unitask packages.

    for example: dotnet add package UniTask --version 2.3.3