Ask a Question

Ask a Question
Back to All

Auto-generated script for the MicroserviceClient: missing assembly reference but it's there.

The auto-generated script for the MicroserviceClient is marked with a few errors like the following:

Assets/Beamable/Autogenerated/Microservices/MultiplayerDataMicroserviceClient.cs(36,88): error CS0234: The type or namespace name 'Challenge' does not exist in the namespace 'Beamable.Server' (are you missing an assembly reference?)

However, the reference to the Beamable.Server namespace is present at the start of the file, as in the following code:

namespace Beamable.Server.Clients
{
    using System;
    using Beamable.Platform.SDK;
    using Beamable.Server;
    
    
    /// <summary> A generated client for <see cref="Beamable.Microservices.MultiplayerDataMicroservice"/> </summary
    public sealed class MultiplayerDataMicroserviceClient : MicroserviceClient, Beamable.Common.IHaveServiceName
    {...

The problem is when I try to access the classes that I define in the MicroserviceStorage script:

namespace Beamable.Server
{
    [StorageObject("CloudChallengesDatabase")]
    public class CloudChallengesDatabase : MongoStorageObject
    {

    }

    public class Challenge
    {
        public ObjectId id;
        public string challengeId;
        public List<long> participants;
        public readonly List<Move> movesHistory = new List<Move>();
        public string status;
    }...