Open Closed

Unable to add-module Volo.CmsKit --with-source-code #3125


User avatar
0
scottlmarx created
  • ABP Framework version: v5.2.2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace: NA
  • Steps to reproduce the issue:" NA

After trying to run add-module Volo.CmsKit --with-source-code the source is not added to the current solutions under the modules folder. It adds them to the physical directory module, but not the under a solutions folder. I am also getting the following errors.

Severity Code Description Project File Line Suppression State Error CS0006 Metadata file 'C:\Repos\ProjectName\aspnet-core\modules\Volo.CmsKit\src\Volo.CmsKit.Public.HttpApi.Client\bin\Debug\netstandard2.0\Volo.CmsKit.Public.HttpApi.Client.dll' could not be found ProjectName.HttpApi.Client C:\Repos\ProjectName\aspnet-core\src\ProjectName.HttpApi.Client\CSC 1 Active


3 Answer(s)
  • User Avatar
    0
    scottlmarx created

    I was able to run "abp add-module Volo.CmsKit --with-source-code --add-to-solution-file" to get the source added to the solutions. Now I am getting a new error.

    System.IO.FileNotFoundException: Could not load file or assembly 'Volo.CmsKit.Admin.Application.Contracts

    I have verified that the project exists.

  • User Avatar
    0
    scottlmarx created

    Here is the complete error message.

    2022-05-21 16:55:47.251 -07:00 [INF] Starting web host. 2022-05-21 16:56:05.366 -07:00 [FTL] Host terminated unexpectedly! System.IO.FileNotFoundException: Could not load file or assembly 'Volo.CmsKit.Admin.Application.Contracts, Version=5.2.2.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified. File name: 'Volo.CmsKit.Admin.Application.Contracts, Version=5.2.2.0, Culture=neutral, PublicKeyToken=null' at System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, RuntimeType type, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) at System.Reflection.CustomAttribute.AddCustomAttributes(ListBuilder1& attributes, RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder1 derivedAttributes) at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) at System.Attribute.GetCustomAttributes(MemberInfo element, Boolean inherit) at Volo.Abp.Modularity.AbpModuleHelper.FindDependedModuleTypes(Type moduleType) at Volo.Abp.Modularity.AbpModuleHelper.AddModuleAndDependenciesRecursively(List1 moduleTypes, Type moduleType, ILogger logger, Int32 depth) at Volo.Abp.Modularity.AbpModuleHelper.AddModuleAndDependenciesRecursively(List1 moduleTypes, Type moduleType, ILogger logger, Int32 depth) at Volo.Abp.Modularity.AbpModuleHelper.FindAllModuleTypes(Type startupModuleType, ILogger logger) at Volo.Abp.Modularity.ModuleLoader.FillModules(List1 modules, IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.Modularity.ModuleLoader.GetDescriptors(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.Modularity.ModuleLoader.LoadModules(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.AbpApplicationBase.LoadModules(IServiceCollection services, AbpApplicationCreationOptions options) at Volo.Abp.AbpApplicationBase..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationWithExternalServiceProvider..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationFactory.Create(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationFactory.CreateAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplicationAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.WebApplicationBuilderExtensions.AddApplicationAsync[TStartupModule](WebApplicationBuilder builder, Action`1 optionsAction) at ProjectName.Web.Program.Main(String[] args) in C:\Repos\ProjectName\aspnet-core\src\ProjectName.Web\Program.cs:line 38

  • User Avatar
    0
    scottlmarx created

    I resolved by making sure all the package references where updated.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38