Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to put software version for WPF Application?

Tags:

c#

wpf

I'm working on a new WPF project and I'm going to label the version as 1.0.0, but on Properties it only says Assembly Name, Default Namespace, Target Framework. but no Version. Where can I find this? (Along with the project name, description, contributors, etc.

like image 979
Christopher Francisco Avatar asked Jun 13 '15 22:06

Christopher Francisco


People also ask

Will WPF be discontinued?

“WPF would be dead in 2022 because Microsoft doesn't need to be promoting non-mobile and non-cloud technology. But WPF might be alive in that sense if it's the best solution for fulfilling specific customer needs today. Therefore, having a hefty desktop application needs to run on Windows 7 PCs with IE 8.

How do I create a setup file for WPF?

Step 01 : Open Visual Studio 2019. On the start window, choose Create new project. Step 02 : Select a project type as your preference( I used to choose WPF App (. NET Framework), for this project), rename the project and click “OK”.

Does .NET 6.0 support WPF?

As of . NET 6.0 WPF supports ARM64. See the WPF Roadmap to learn about project priorities, status and ship dates. WinForms is another UI framework for building Windows desktop applications that is supported on .


2 Answers

You are close, it is under your Project Properties--> Application tab --> Assembly Properties button.

enter image description here

like image 178
Mark Hall Avatar answered Sep 21 '22 02:09

Mark Hall


There is an AssemblyInfo.cs file in your project. (under Properties folder).

There are two attributes there, you can use them.

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

To keep the versions aligned for all the projects in your solution you can have one CommonAssemblyInfo file and link it to every project.

like image 21
Anton Sizikov Avatar answered Sep 17 '22 02:09

Anton Sizikov