abp icon indicating copy to clipboard operation
abp copied to clipboard

Studio and new Cli are not using the latest template

Open renping106 opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

There are differences in the program.cs file created by new cli and old cli. Template is app. Let‘s compare the program.cs file in project MyProjectName.Web. New cli: image Old cli: image

Reproduction Steps

  1. Create a new project by old cli. abp new Acme.BookStore -m none --theme leptonx-lite -csf --old
  2. Create a new project by new cli. abp new Acme.BookStore -m none --theme leptonx-lite -csf
  3. Compare the program.cs in MyProjectName.Web

Expected behavior

program.cs should be the same.

Actual behavior

They are different. Looks like the new cli is using a template with a very old version.

Regression?

No response

Known Workarounds

No response

Version

8.3.1

User Interface

Common (Default)

Database Provider

EF Core (Default)

Tiered or separate authentication server

None (Default)

Operation System

Windows (Default)

Other information

No response

renping106 avatar Oct 12 '24 02:10 renping106

There are other differences also it seems, like the old CLI having full support for Docker while the new one (or rather solutions created with it and ABP Studio) has almost none. Folder structure etc. is also different. All in all there seem to be a substantial amount of differences between two created solutions both using respective 8.3.1 CLI.

We are using the commercial version of ABP, so there might be differences compared to the open source one, but with the base being the same for both, most of them should be the same I think.

improwise avatar Oct 14 '24 20:10 improwise

I think so too, in fact I had already opened a similar issue https://github.com/abpframework/abp/issues/20388

Abp teaches us to apply the DRY method (don't repeat yourself) and I don't think that having two distinct templates is a winning solution. It requires double the maintenance and testing work for volosoft and for me. The version for Abp Studio comes out too many days late compared to the open source. I think VoloSoft should review this management. Thanks

RobertoFiocchiMCSI avatar Oct 22 '24 08:10 RobertoFiocchiMCSI

I also had a similar issue #21592.

The new template had the line options.FileSets.AddEmbedded<MyProjectWebModule>(); in it but the old template did not.

Also, why are the new templates not open source like the old templates?

The source code of the old templates is here: https://github.com/abpframework/abp/tree/dev/templates

Where is the source code for the new templates?

ejohnson-dotnet avatar Dec 12 '24 22:12 ejohnson-dotnet

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 26 '25 02:04 stale[bot]