Open Closed

Replace with source code using CLI #6720


User avatar
0
hitaspdotnet created

Is there a way to replace modules (PRO & FREE) with source code but keep framework? I want to do this inside CI, so manually change can't help. I have tried switch-to-local --paths "path\to\pro\free\modules\" with batch get-source for all modules. but didn't work for framework references inside free modules. My CI has +1K package conflict error with netstandard2.0 on my solution when I trying to graph build my project with local framework reference: conflict System.Runtime 5.x and System.Runtime 8.x inside every proj has reference to Volo.Abp.Core Why do we still have the netstandard2.0? I have tried -p:TargetFramework=net8.0 and didn't help


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    switch-to-local

    You can try to customize the LocalReferenceConverter to skip for the framework. Then build a local dotnet global tool and install and use it.

    https://github.com/abpframework/abp/blob/blazor-full-stack-web-ui/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SwitchToLocalCommand.cs#L39

    https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/LocalReferenceConverter.cs#L40

  • User Avatar
    0
    hitaspdotnet created

    You can try to customize the LocalReferenceConverter to skip for the framework. Then build a local dotnet global tool and install and use it.

    Thank you. I'm working on it. However, it can be useful if we had a switch for it abp switch-to-local --skip-framework

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    We will discuss it internally.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08