I have a plugin with two modules and the following structure:

In TestPlugin I have a dataasset class “UTest.”. This plugin compiles fine with no issues initially.
#pragma once
#include "CoreMinimal.h"
#include "Engine/DataAsset.h"
#include "Runtime/CoreUObject/Public/UObject/UObjectGlobals.h"
#include "Test.generated.h"
/**
*
*/
UCLASS()
class NODEPLUGIN_API UTest : public UDataAsset
{
GENERATED_BODY()
};
But the problem starts when
I ceate a new c++ class derived from UTest into the other module “AnotherPlugin”.
#pragma once
#include "CoreMinimal.h"
#include "TestPlugin/Public/Test.h"
#include "InheritedTest.generated.h"
/**
*
*/
UCLASS()
class ANOTHERPLUGIN_API UInheritedTest : public UTest
{
GENERATED_BODY()
};
Suddenly I get a “Cannot open include file: ‘Test.generated.h’: No such file or directory” error.
I have tried the steps proposed to solve this issue in other discussions in this forum: delete plugin bin,save and Intermediate folders and then regenerated the Visual Studio Files for the project, but with no luck.
Creating a new c++ class derived from UTest within the same module works fine.
Is this approach to inherit an Engine generated class from one plugin module to another not possible or am I missing something?