Base solution for your next web application
Open Closed

Sharing parts of codebase between two projects. #8790


User avatar
0
christianpedersen created

We have two Asp.Net Zero applications. After some analysis we found out that the first application which is already under development will share a lot of classes and business logic with the second much bigger application. In order to avoid copying code between applications we would like to make some parts of those two applications a common codebase. The parts are: Domain and DataAccess (Or in Asp.Net Zero terms Core and EntityFrameworkCore projects). We thought that we will split those projects as a git submodule and then reference it in both of the projects. After the split however the first app stopped working and we can see 'Abp.AspNetZeroCore.Licensing.AspNetZeroLicenseException' in Abp.AspNetZeroCore.dll. It happens when we try to run the Web.Host project or when we try to debug the unit tests (if we just run the unit tests they work fine which is unusual). Can you please advise how we should handle this split process or what should we do in order to get rid of this exception. Both products are on separate licenses.


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @christianpedersen

    This happens becasue of project name check but AspNet Zero cehcks only the entry project's Assembly name. Is it possible for you to share your project with us via email so we can test it for you ?

    Thanks,

  • User Avatar
    0
    christianpedersen created

    @ismcagdas

    Which email do we send it to?

  • User Avatar
    0
    ismcagdas created
    Support Team

    You can send it to [email protected].

    Thanks,

  • User Avatar
    0
    christianpedersen created

    Great, you will have it in 15 min.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @christianpedersen,

    We received the email and get back to you as soon as possible.

    Thanks,