Search code examples
kentico-kontentkontent-ai

Kentico.Kontent.Management The type or namespace name 'AssetIdentifier' could not be found


I have generated a model with Kentico.Kontent.ModelGenerator 6.0.1:

public partial class Car
{
        [JsonProperty("about_image")]
        public IEnumerable<AssetIdentifier> AboutImage { get; set; }
        [JsonProperty("about_text")]
        public string AboutText { get; set; }
        [JsonProperty("additional_header_image")]
}

while compiling getting ERROR :

Error CS0246 The type or namespace name 'AssetIdentifier' could not be found (are you missing a using directive or an assembly reference?)

PS: I'm using the latest Kentico.Kontent.Management 3.0.1


Solution

  • There has been a major release of Genereators SDK. You can try regenerating your models with the latest version.