Unable to successfully build new project with CLI #17057
Unanswered
AlanStruthers
asked this question in
General
Replies: 2 comments
-
Appreciate this is an old issue, but I have just run into the very same error this morning. Any insights? |
Beta Was this translation helpful? Give feedback.
0 replies
-
hi Please share the full output of the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Greetings.
Details:
Loaded the newest CLI and tooling in the last 7 days, so should be current.
Steps to reproduce => Execute this CLI command line:
abp new BookStore -u blazor --tiered
In the error (below), is the following line:
"D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Bundling\BundlingService.cs:line 291"
Which is unusual, as I have no D drive, and the reference to "Jenkins" is unfamiliar to me.
Could this be an artifact of some previous commit to this ABP project? Any insights welcome.
Builds project, but then fails with the following:
"<Additional audit log above, all looked correct, then>...
Build succeeded.
C:\Data\WorkSpaces\TieredBlazor\src\BookStore.Blazor\Menus\BookStoreMenuContributor.cs(60,13): warning CS0162: Unreachable code detected [C:\Data\WorkSpaces\TieredBlazor\src\BookStore.Blazor\BookStore.Blazor.csproj]
1 Warning(s)
0 Error(s)
Time Elapsed 00:00:06.69
Unable to load one or more of the requested types.
Could not load file or assembly 'Volo.Abp.Core, Version=7.2.3.0, Culture=neutral, PublicKeyToken=null'. Could not find or load a specific file. (0x80131621)
Could not load file or assembly 'Volo.Abp.Core, Version=7.2.3.0, Culture=neutral, PublicKeyToken=null'. Could not find or load a specific file. (0x80131621)
Could not load file or assembly 'Volo.Abp.Core, Version=7.2.3.0, Culture=neutral, PublicKeyToken=null'. Could not find or load a specific file. (0x80131621)
Could not load file or assembly 'Volo.Abp.Core, Version=7.2.3.0, Culture=neutral, PublicKeyToken=null'. Could not find or load a specific file. (0x80131621)
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load file or assembly 'Volo.Abp.Core, Version=7.2.3.0, Culture=neutral, PublicKeyToken=null'. Could not find or load a specific file. (0x80131621)
Could not load file or assembly 'Volo.Abp.Core, Version=7.2.3.0, Culture=neutral, PublicKeyToken=null'. Could not find or load a specific file. (0x80131621)
Could not load file or assembly 'Volo.Abp.Core, Version=7.2.3.0, Culture=neutral, PublicKeyToken=null'. Could not find or load a specific file. (0x80131621)
Could not load file or assembly 'Volo.Abp.Core, Version=7.2.3.0, Culture=neutral, PublicKeyToken=null'. Could not find or load a specific file. (0x80131621)
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at Volo.Abp.Cli.Bundling.BundlingService.GetStartupModule(String assemblyPath) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Bundling\BundlingService.cs:line 291
at Volo.Abp.Cli.Bundling.BundlingService.BundleAsync(String directory, Boolean forceBuild, String projectType) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Bundling\BundlingService.cs:line 68
at Volo.Abp.Cli.Commands.ProjectCreationCommandBase.RunBundleForBlazorWasmOrMauiBlazorTemplateAsync(ProjectBuildArgs projectArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\ProjectCreationCommandBase.cs:line 436
at Volo.Abp.Cli.Commands.NewCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\NewCommand.cs:line 114
at Volo.Abp.Cli.CliService.RunInternalAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 169
at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 77
System.IO.FileLoadException: Could not load file or assembly 'Volo.Abp.Core, Version=7.2.3.0, Culture=neutral, PublicKeyToken=null'. Could not find or load a specific file. (0x80131621)
File name: 'Volo.Abp.Core, Version=7.2.3.0, Culture=neutral, PublicKeyToken=null'
---> System.IO.FileLoadException: Could not load file or assembly 'Volo.Abp.Core, Version=7.2.3.0, Culture=neutral, PublicKeyToken=null'.
at System.Runtime.Loader.AssemblyLoadContext.g____PInvoke|5_0(IntPtr ptrNativeAssemblyBinder, UInt16* ilPath, UInt16* niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at System.Reflection.Assembly.LoadFromResolveHandler(Object sender, ResolveEventArgs args)
at System.Runtime.Loader.AssemblyLoadContext.InvokeResolveEvent(ResolveEventHandler eventHandler, RuntimeAssembly assembly, String name)
System.IO.FileLoadException: Could not load file or assembly 'Volo.Abp.Core, Version=7.2.3.0, Culture=neutral, PublicKeyToken=null'. Could not find or load a specific file. (0x80131621)
File name: 'Volo.Abp.Core, Version=7.2.3.0, Culture=neutral, PublicKeyToken=null'
---> System.IO.FileLoadException: Could not load file or assembly 'Volo.Abp.Core, Version=7.2.3.0, Culture=neutral, PublicKeyToken=null'.
at System.Runtime.Loader.AssemblyLoadContext.g____PInvoke|5_0(IntPtr ptrNativeAssemblyBinder, UInt16* ilPath, UInt16* niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at System.Reflection.Assembly.LoadFromResolveHandler(Object sender, ResolveEventArgs args)
at System.Runtime.Loader.AssemblyLoadContext.InvokeResolveEvent(ResolveEventHandler eventHandler, RuntimeAssembly assembly, String name)
System.IO.FileLoadException: Could not load file or assembly 'Volo.Abp.Core, Version=7.2.3.0, Culture=neutral, PublicKeyToken=null'. Could not find or load a specific file. (0x80131621)
File name: 'Volo.Abp.Core, Version=7.2.3.0, Culture=neutral, PublicKeyToken=null'
---> System.IO.FileLoadException: Could not load file or assembly 'Volo.Abp.Core, Version=7.2.3.0, Culture=neutral, PublicKeyToken=null'.
at System.Runtime.Loader.AssemblyLoadContext.g____PInvoke|5_0(IntPtr ptrNativeAssemblyBinder, UInt16* ilPath, UInt16* niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at System.Reflection.Assembly.LoadFromResolveHandler(Object sender, ResolveEventArgs args)
at System.Runtime.Loader.AssemblyLoadContext.InvokeResolveEvent(ResolveEventHandler eventHandler, RuntimeAssembly assembly, String name)
System.IO.FileLoadException: Could not load file or assembly 'Volo.Abp.Core, Version=7.2.3.0, Culture=neutral, PublicKeyToken=null'. Could not find or load a specific file. (0x80131621)
File name: 'Volo.Abp.Core, Version=7.2.3.0, Culture=neutral, PublicKeyToken=null'
---> System.IO.FileLoadException: Could not load file or assembly 'Volo.Abp.Core, Version=7.2.3.0, Culture=neutral, PublicKeyToken=null'.
at System.Runtime.Loader.AssemblyLoadContext.g____PInvoke|5_0(IntPtr ptrNativeAssemblyBinder, UInt16* ilPath, UInt16* niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at System.Reflection.Assembly.LoadFromResolveHandler(Object sender, ResolveEventArgs args)
at System.Runtime.Loader.AssemblyLoadContext.InvokeResolveEvent(ResolveEventHandler eventHandler, RuntimeAssembly assembly, String name)"
Beta Was this translation helpful? Give feedback.
All reactions