Ian Barber
Ian Barber

Reputation: 173

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

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.

Upvotes: 5

Views: 9717

Answers (2)

Abdul Khaliq
Abdul Khaliq

Reputation: 2285

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>

Upvotes: -1

NineBerry
NineBerry

Reputation: 28509

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

enter image description here

Upvotes: 7

Related Questions