Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8777937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:24:03+00:00 2026-06-13T19:24:03+00:00

While porting an application to the Windows Store, I noticed the .NETCore Framework does

  • 0

While porting an application to the Windows Store, I noticed the .NETCore Framework does not include:

System.Reflection.Assembly.GetExecutingAssembly()

I used this to get the version information for display on the menu screen. Is there a replacement or am I forced to store the information elsewhere for retrieval?

EDIT:

I’ve also found that I can extract a version number out of typeof(MyType).AssemblyQualifiedName but that seems bad.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:24:05+00:00Added an answer on June 13, 2026 at 7:24 pm

    I am using this :

    public string GetApplicationVersion()
    {
      var ver = Windows.ApplicationModel.Package.Current.Id.Version;
      return ver.Major.ToString() + "." + ver.Minor.ToString() + "." + ver.Build.ToString() + "." + ver.Revision.ToString();
    }
    

    And if you want assembly version you can get it from Version attribute :

    public string GetAssemblyVersion(Assembly asm)
    {
      var attr = CustomAttributeExtensions.GetCustomAttribute<AssemblyFileVersionAttribute>(asm);
      if (attr != null)
        return attr.Version;
      else
        return "";
    }
    

    For example using main App’s assembly :

    Assembly appAsm = typeof(App).GetTypeInfo().Assembly;
    string assemblyVersion = GetAssemblyVersion(appAsm);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While porting a desktop application to windows mobile I've reached the following error: Error
I am porting a Unix C application to Windows. This application renames files while
While debugging and keep pressing F5, if the source code does not exist, eclipse
I am working on porting a VB6 application to C# (Winforms 3.5) and while
I'm porting a windows network application to linux and faced a timeout problem with
I am working on porting a Windows Phone application to Windows 8 Metro, using
I am porting a .NET CF 1.0 WinForms application (for older versions of Windows
I'm in the process of porting an application from Windows to Mac OS X.
I'm currently porting an application from iPhone to Windows Phone. The behaviour of buttons
I am porting my application to windows from unix and I have run into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.