Open Closed

How we can get current abp app version and show it to in UI #883


User avatar
0
safi created

Hi,

I want to show current abp version into my application so is there any way to get this. Please let me know.

Thanks,

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

4 Answer(s)
  • User Avatar
    0
    Moyaoxiang created

    Hi safi, You can get the file version through GetFileVersion() and return it to the front-end page.

    var version = typeof(AbpModule).Assembly.GetFileVersion();
    

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    safi created

    Hi

    We are adding this code into Host project and all pages are available into Blazor project so If I am adding this into host so I am getting version but If I am adding the same code into blazor then getting error like FileVersion is not supported error in console so please suggest me.

    Thanks,

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    alper created
    Support Team Director

    Maybe Blazor didn't implement this because it runs in your browser. Also Blazor is a client and you also have a host. So these projects have different versions. The best practise is storing Blazor client version in a const variable and get the host version via API call. Create a new application service like ApplicationInfoAppservice and return the version from this service...

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 28, 2026, 11:44
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.