I work on asp.net core on razor page i face issue i can't call dto classes from appliction layer in shared layer
my web application contain 4 layer
Application(have dto classes)
Core
Host
Shared(place i need to call dto classes)
when i come on shared layer and call dto classes that exist on application layer
not added
i try on shared layer add
using UC.ADC.Application.Asset.Dto;
class i need to call it on shared layer as below
namespace UC.ADC.Application.Asset.Dto { public class AssetBranchesItems { public string SelectedMCU { get; set; } public string SelectedMCUName { get; set; } } }
on shared layer i can't call dto class above from application layer
namespace UC.ADC.Shared.Assets { public class DisplayAssetTaggingDetails { public List<AssetBranchesItems> asstBranchesLists{ get; set; } } }
if i try to add on shared layer
UC.ADC.Application.Asset.Dto
not accept add UC.ADC.Application.Asset.Dto
and also when i write on shared layer
public List<AssetBranchesItems> asstBranchesLists{ get; set; }
not auto complete or detect that class AssetBranchesItems exist on application layer
so what i do to solve this issue