Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

7.1 => 8.8 Uprade Issue with xUnit Test Projects #9876


User avatar
0
admin@SYNTAQ created

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 7.1 => 8.8 upgrade issue
  • What is your product type (Angular or MVC)? > MVC
  • What is product framework type (.net framework or .net core)? .Net Core 2.1 => 3.1

After upgrading from 7.1 to 8.8 we are unable to get our xUnit test projects compiling. The solution itself builds and runs fine.

The error seems realted to missing the Abp.DynamicEntityParameters.IDynamicEntityParameterConfiguration. We have compared our test project against a fresh demo version of 8.8 and can find no differernce. Can you provide any pointers on where we can look?

` Syntaq.Falcon.Tests.Apps.AppJobsAppService_Tests.Should_Create_App_Job Source: AppJobsAppService_Tests.cs line 60 Duration: 1 ms

Message: System.MissingMethodException : Method not found: 'Abp.DynamicEntityParameters.IDynamicEntityParameterConfiguration Abp.Configuration.Startup.IAbpStartupConfiguration.get_DynamicEntityParameters()'. Stack Trace: FalconCoreModule.PreInitialize() <>c.


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

    Hi,

    Most of the time this is caused by a missing update on the NuGet packages. So, you can try;

    1. Be sure you have updated all ABP related NuGet packages to same version.
    2. You can delete bin & obj folders and try to build your project and run the tests again.
  • User Avatar
    0
    admin@SYNTAQ created

    The main project is using abp 5.8.0 the test project was using Abp.TestBase 5.1.0. I updated the Test projects to use Abp.TestBase 5.8.0 but am still throwing the following error on running the xunit tests

    System.MissingMethodException : Method not found: 'Abp.DynamicEntityParameters.IDynamicEntityParameterConfiguration Abp.Configuration.Startup.IAbpStartupConfiguration.get_DynamicEntityParameters()'.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I think there are still different dependencies. Could you run Delete-BIN-OBJ-Folders.bat file under the aspnet-core folder and restore the packages again and run the tests ?

    If it doesn't work, could you send your all csproj files to [email protected] ?

    Thanks,