Open Closed

Unable to add Chat module to Blazor project v7.4.2 #6320


User avatar
0
olitrepanier created
  • ABP Framework version: v7.4.2
  • UI Type: Blazor WASM
  • Database System: EF Core SQL Server
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace: No particular exceptions. The addition of the Chat module did not work.
  • Steps to reproduce the issue:
  1. Run abp suite
  2. In the modules page, click add as package on the Chat module.
  3. Wait for the process to end (it took a very long time)
  4. Process completes successfully

Observe that the package references are not added to any .csproj

I tried to add all the references manually in all the csproj that required Volo.Chat which fixed most of my issues:

There are three projects that are problematic since they are also in .net standard?

When I look at the dependencies of these projects, I see this:

Any idea what went wrong or what I can do to fix this?

Thank you,


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I could not reproduce the problem.

    Here are the steps for manual installation:

    • Install Volo.Chat.Domain to Your Domain project
    • Install Volo.Chat.Domain.Shared to Your Domain.Shared project
    • Install Volo.Chat.EntityFrameworkCore to Your EntityFrameworkCore project
    • Install Volo.Chat.Application to Your Application project
    • Install Volo.Chat.Application.Contracts to Your Application.Contracts project
    • Install Volo.Chat.HttpApi to Your HttpApi project
    • Install Volo.Chat.HttpApi.Client to Your HttpApi.Client project
    • Install Volo.Chat.Blazor and Volo.Chat.Blazor.WebAssembly to Your Blazor project
    • Install Volo.Chat.SignalR to Your HttpApi.Host project
    • Add module dependencies to each project. for example: [DependsOn(typeof(ChatDomainModule))]
    • Run abp bundle for Blazor project

    Open your DbContext

    protected override void OnModelCreating(ModelBuilder builder)
    {
       builder.ConfigureChat();
    }
    

    Add and apply a new migration file

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11