Today I was trying to determine how to display the version number entered into the Options dialog on a razor pages solution. Environment: Although I dont think it matters, I am using Visual Studio on a Mac. Description: If you right click the solution note in a Visual Studio solution, there is an Options menu item. Clicking that leads to a dialog where there is an entry box for entering a version number. In the project under the solution, there is an Options menu there to, and there is a checkbox to let it take its version number from the solution version number. This version number is stored in the .CSPROJ configuration file for the project. I tried to find a way to display this version number on a page in my app. I spent at least a couple of hours, and had to read about 20 webpages for a solution. It turns out there probably is not a way to get the app to display that version number, because that version number apparently does not get baked into the app when it is published. However, there are some other version numbers that can be displayed. The article that gave me the solution I needed was "Get App Version" in .NET Core https://edi.wang/post/2018/9/27/get-app-version-net-core I didnt need this article, but it looks like it describes a useful solution I may need in the near future regarding version prefixes and suffixes. * https://andrewlock.net/version-vs-versionsuffix-vs-packageversion-what-do-they-all-mean/ * Version vs VersionSuffix vs PackageVersion: What do they all mean? https://andrewlock.net/version-vs-versionsuffix-vs-packageversion-what-do-they-all-... * May 8, 2018 - Setting an MSBuild property in your csproj file. With .NET Core, and the simplification of the .csproj project file format, adding properties to your project file is no longer an arduous task. You can set any of the version numbers I've described in this post by setting a property in your .csproj file. * You visited this page on 5/22/19. Google queries I tried: * Version FileVersion AssemblyVersion ReleaseVersion * version number from csproj * razor pages display version number * Displaying and Setting Current ASPNET Assembly Version - ardalis - https://ardalis.com/displaying-and-setting-current-aspnet-assembly-version . You visited this page on 5/22/19. * Nov 15, 2017 - Displaying this on a Razor Page can be done simply by settings a .... NET Core Assemblies, specifying as the Version Number the build ... * How to get the product version from a Razor View - Stack Overflow - https://stackoverflow.com/questions/13238688/how-to-get-the-product-version-from-a-razor-view - 2 answers * Nov 5, 2012 - I am guessing that it is trying to get the version of the Razor Engine, not your application. ... NET handles each Page/View (Razor view). * razor pages display csproject releaseversion * Additions to the csproj format for .NET Core - .NET Core CLI | Microsoft ... https://docs.microsoft.com/en-us/dotnet/core/tools/csproj * Apr 7, 2019 - With the move to the csproj format in the latest SDK versions, we've moved ... Because of that, Solution Explorer will continue show *.cs items as part ... NET Core Razor Class Library SDK with the ID of Microsoft. ..... This page. * Display project version in ASP.NET MVC Core application (RC2 ... - https://stackoverflow.com/questions/37798075/display-project-version-in-asp-net-mvc-core-application-rc2 * 5 answers - Aug 17, 2017 - GetName().Version. as specified in "Replacing API usage" section of the previous linked page. ... myproject.csproj ... * applicationversion always shows 1.0.0.0 razor pages * applicationversion always shows 1.0.0.0 * assemblyinfo.cs not showing version number from csproj * razor pages ApplicationVersion always showing 1.0.0.0 * Problem getting the AssemblyVersion into a web page using Razor Pages - https://stackoverflow.com/questions/6156903/problem-getting-the-assemblyversion-into-a-web-page-using-razor-mvc3 * razor pages display solution ReleaseVersion number * razor pages "project ReleaseVersion" number * razor pages "project release version" number * razor pages "project version" number * razor pages project version number Some microsoft pages I looked at: * Google query: AssemblyFileVersionAttribute * https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assemblyfileversionattribute?view=netframework-4.8 Some other pages I looked at: * Setting the version number for .NET core projects with a CSPROJ file and not JSON configured projects https://stackoverflow.com/questions/43274254/setting-the-version-number-for-net-core-projects-csproj-not-json-projects * Auto Versioning in Visual Studio 2017 (.NET Core) https://stackoverflow.com/questions/43019832/auto-versioning-in-visual-studio-2017-net-core * Setting the version number for .NET Core projects - CSPROJ - not JSON projects - https://stackoverflow.com/questions/43274254/setting-the-version-number-for-net-core-projects-csproj-not-json-projects * Problem getting the AssemblyVersion into a web page using Razor /MVC3 - https://stackoverflow.com/questions/6156903/problem-getting-the-assemblyversion-into-a-web-page-using-razor-mvc3 * How to use the dotnet-pack --version-suffix with csproj? - https://stackoverflow.com/questions/42612916/how-to-use-the-dotnet-pack-version-suffix-with-csproj/42615574#42615574