Open Closed

How do I create a project with .net core v8 with abp studio and setup crud with abp suite #8488


User avatar
0
jermaine.gray@gmail.com created
  • ABP Framework version: v9.0.0
  • UI Type: Angular / MVC / Blazor WASM / Blazor Server
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..) / MongoDB
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

When i try to create .net core 8 project by switch the version in abp studio the project still come out as .net 9. most of the internet still dont support .net 9 so i want to switch back to 8. how do i do that?


13 Answer(s)
  • User Avatar
    0
    327992883@qq.com created

    I have this problem too

  • User Avatar
    0
    jermaine.gray@gmail.com created

    Is this possible?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you change all net9.0 target to net8.0 in csproj files?

    You can also use old CLI to create a new 8.x project and then develop it in Studio.

    https://abp.io/docs/latest/cli/differences-between-old-and-new-cli

  • User Avatar
    0
    roberto.fiocchi created

    hi

    Can you change all net9.0 target to net8.0 in csproj files?

    You can also use old CLI to create a new 8.x project and then develop it in Studio.

    https://abp.io/docs/latest/cli/differences-between-old-and-new-cli

    In the linked doc it says: With v8.2+, ABP introduces a new templating system, which is fully compatible with the ABP Studio. So, if I choose the template Ex: 8.3.2 the project must be target net8 and I must not modify it by hand. In my opinion it is an error of Abp studio that does not manage this parameter correctly.

    In addition, Volosoft had said that it would always maintain the version in Microsoft LTS support so I expect that it can continue to create projects and develop with abp studio and .Net8. As well as I expect that the fixes will also be made in the .Net8 templates (abp 8.x) and not only in the .net9 templates (abp 9.x).

    Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi roberto.fiocchi

    We will fix this in Studio.

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hello there,

    In the linked doc it says: With v8.2+, ABP introduces a new templating system, which is fully compatible with the ABP Studio. So, if I choose the template Ex: 8.3.2 the project must be target net8 and I must not modify it by hand. In my opinion it is an error of Abp studio that does not manage this parameter correctly.

    What you say is correct, but I see that there are a few misunderstandings. First of all, there is no obstacle to generate a template with version 8.3.2. See here. You can open the template you generated in the latest version of ABP Studio and use all its features, there is no limitation or problem with that. You cannot create a project targeting .NET 8 only with the latest version of ABP Studio. As Maliming said, we have an issue on this subject but unfortunately, it is not a prioritized.

    In addition, Volosoft had said that it would always maintain the version in Microsoft LTS support so I expect that it can continue to create projects and develop with abp studio and .Net8.

    With the latest version of ABP Studio, you cannot generate a project targeting .NET 8, you can however continue to develop it. If you want to create a project targeting .NET 8, you can refer here.

    As well as I expect that the fixes will also be made in the .Net8 templates (abp 8.x) and not only in the .net9 templates (abp 9.x).

    Yes, we pay as much attention to this as we can. You can open an issue if you have a problem with this.

  • User Avatar
    0
    roberto.fiocchi created

    Thanks for the reply, but can you confirm that Abp Studio (desktop app) and Abp Studio Cli (console app) use the same templates to create the solution?

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Thanks for the reply, but can you confirm that Abp Studio (desktop app) and Abp Studio Cli (console app) use the same templates to create the solution?

    I can verify that it will generate the same template if they are both in the same version. This means that you can switch between the versions of Studio's CLI (Volo.Abp.Studio.Cli) application and generate the project to be rendered with the new template engine in the ABP version you want. You can look here for version mapping.

  • User Avatar
    0
    roberto.fiocchi created

    Ok, can you do that for me?

    Thanks

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    You can find the relevant terminal commands below:

    // Uninstall CLI
    dotnet tool uninstall --global Volo.Abp.Studio.Cli
    
    // Install CLI with 0.9.7 version. This version generates templates with 8.3.3 of ABP version
    dotnet tool install --global Volo.Abp.Cli --version 0.9.7
    
    // Template generation. You can change the parameters to fit you.
    abp new Acme.BookStore --csf
    
    // Necessary codes to switch back to the latest version of the CLI
    dotnet tool uninstall --global Volo.Abp.Studio.Cli
    dotnet tool install --global Volo.Abp.Cli 
    
  • User Avatar
    0
    roberto.fiocchi created

    Volo.Abp.Cli is Legacy Cli and in theory it does not support new versions of ABP as I was told. https://abp.io/docs/latest/cli/differences-between-old-and-new-cli#using-the-new-abp-cli

    Volo.Abp.Cli is different from Volo.Abp.Studio.Cli and uses different templates as I had already reported https://github.com/abpframework/abp/issues/20388

    In fact my question was whether Abp Studio and Abp Studio CLI share the same templates or use different templates as it happens with Legacy CLI.

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    In fact my question was whether Abp Studio and Abp Studio CLI share the same templates or use different templates as it happens with Legacy CLI.

    ABP Studio and ABP Studio CLI(Volo.Abp.Studio.Cli) share the same templates but the legacy CLI (Volo.Abp.Cli) generates outdated templates.

  • User Avatar
    0
    roberto.fiocchi created

    In fact my question was whether Abp Studio and Abp Studio CLI share the same templates or use different templates as it happens with Legacy CLI.

    ABP Studio and ABP Studio CLI(Volo.Abp.Studio.Cli) share the same templates but the legacy CLI (Volo.Abp.Cli) generates outdated templates.

    Perfect, thanks!

Made with ❤️ on ABP v9.2.0-preview. Updated on January 20, 2025, 07:44