How To Set Version Number For A C# Win Forms App
Asked Answered
S

2

5

I am using Visual Studio 2022 and have just created a new Win Form Application. Currently the version number of my newly created app is 1.0.0

How can I change this in the designer

I have looked under properties of the project but cannot see anything related to these properties.

Shameful answered 28/11, 2022 at 23:17 Comment(3)
#43274754Diego
I appreciate the link but I wanted to do it via the designer rather then in the fileShameful
Clearly you are not used to .NETCore projects, editing the project file is considered entirely normal and often a hard necessity. Right-click the project in the Solution Explorer window and select "Edit Project File".Diego
P
7

Under Project -> Properties go to Package -> General and there you can enter Assembly Version and File Version.

enter image description here

Proletarian answered 28/11, 2022 at 23:22 Comment(1)
Thank You, I think they have changed this since I last used VS 2019 as it looks different in some areas. Got there in the end, thanks for the quick reply.Shameful
A
0

The below link worked perfectly in VS 2022 after making some necessary changes. https://www.codeproject.com/Tips/445830/Automatically-display-your-application-version?msg=6012174#xx6012174xx

Right-click the project in Solution Explorer and select Unload Project. Right-click the unloaded project and select Edit YourProject.csproj.

<PropertyGroup>
      <Deterministic>false</Deterministic>
</PropertyGroup>
Achievement answered 1/8 at 5:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.