Retrieve Product and Assembly Information
Categories: Cross Application Tasks, Starting to Develop
|
Tags: Architects, Developers, C#, VB.NET, 1. Beginner, 2. Intermediate, 3. Advanced, v6.4 and Later
Revision:
1
Posted:
12/Oct/2010
Updated:
04/Dec/2010
Status:
Publish
Types: Code
|
Overview
Application.CompanyName
Application.ProductName
Application.ProductVersion
In Visual WebGui the following Properties are not yet implemented as of now: This article is meant to show you how to retrieve this information using attached code you simply need to plug into your application.
Issue VWG-7923 is meant to fix this within the framework itself. DetailsThe code attached contains class-library project with the public methods that return this information. What you need to do to be able to do that is to add the library assembly to your application and reference it in your Visual WebGui Application project. Once done to retrieve the specific information you need you will be able to simply use this code:
C#
AssemblyInformationAccess.GetCompanyName(System.Reflection.Assembly.GetExecutingAssembly());
AssemblyInformationAccess.GetProductName(System.Reflection.Assembly.GetExecutingAssembly());
AssemblyInformationAccess.GetProductVersion(System.Reflection.Assembly.GetExecutingAssembly());
VB.NET
AssemblyInformationAccess.GetCompanyName(System.Reflection.Assembly.GetExecutingAssembly())
AssemblyInformationAccess.GetProductName(System.Reflection.Assembly.GetExecutingAssembly())
AssemblyInformationAccess.GetProductVersion(System.Reflection.Assembly.GetExecutingAssembly())
Be aware that this code must be executed from code located on the Visual WebGui Application project.
Example of useThe attached code contains both a Visual WebGui and an MS Windows Forms application using this same code as an example.
CodeReferecnesIssue TrackerForum Threads
About the author
Related Articles
|
Cross Application Tasks
|
|
|
This sample code shows how to switch the current UI culture in run time and to refresh the UI text.
Tags:
Developers, Non English Cultures, Right-To-Left, 1. Beginner, 2. Intermediate, Pre v6.3, v6.3, v6.4 and Later, 3. Advanced
|
|
|
Learn how to run the Web/Cloud/SaaS application migration readiness test for your .NET and legacy desktop applications - Simply run it on your application's executables (EXE, DLL) and in a matter of minutes get a detailed report indicating how close you are to converting your app to SaaS, Web or Clo...
Tags:
Architects, CIOs, Developers, Visual WebGui Pipeline, 1. Beginner, 2. Intermediate, 3. Advanced, VB6, Windows Forms, v6.4 and Later
|
|
|
In this webcast, you learn how Visual WebGui solves the complexity of utilizing the model view controller pattern (MVC) pattern in Web development in a light, simple, and productive way. Visual WebGui enables you to effectively use the complete MVC desktop strength while developing Web applications,...
Tags:
Architects, Developers, Drag & Drop, Events, C#, Visual Studio, 1. Beginner, 2. Intermediate, 3. Advanced, Customization, Layouting, ASP.NET, Pre v6.3, v6.3, v6.4 and Later
|
|
|
Tags:
Architects, CIOs, Developers, Visual WebGui Pipeline, 1. Beginner, 2. Intermediate, 3. Advanced, VB6, Windows Forms, v6.4 and Later
|
|
|
|