KraigK
Posts: 6
Joined: Mon Jan 29, 2024 4:07 pm

Installer not picking up changes in csproj file

Wed Mar 06, 2024 4:59 pm

In my csproj file, I set the <Version> and <FileVersion> tags and then use this in my app to do a verification that the user is using the correct version of the app. I used to use a VS Setup project but recently switched to AI.

When I do a release build, I update those tags and build. When installing the resulting msi and launch the app, those updated values are not reflected. I may have gotten it to work maybe once but it is very inconsistent. It seems like whatever value was in there after the first build, is what gets 'stuck'.

I created a test app. Didn't have those tags at all in csproj, built installer, installed. Form header shows Package: 1.0.0 Build 1.0.0.0

I added the tags and changed their values. Uninstalled previous, built, installed, form header says same.

If I do a publish and launch that exe, the header is updated.

Will send zip via email

KraigK
Posts: 6
Joined: Mon Jan 29, 2024 4:07 pm

Re: Installer not picking up changes in csproj file

Wed Mar 06, 2024 5:00 pm

Can't send zips and forum wouldn't let me attach. Looks like I should be able to email it, I'm looking into it.

Catalin
Posts: 6506
Joined: Wed Jun 13, 2018 7:49 am

Re: Installer not picking up changes in csproj file

Mon Mar 11, 2024 5:36 pm

Hello,

In order to send the resources, please ZIP them and upload them on e.g. DropBox and forward me the download link at support at advancedinstaller dot com so I can further test and investigate this.

Additionally, please forward me a test-case as well, as that would greatly ease the testing process.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

KraigK
Posts: 6
Joined: Mon Jan 29, 2024 4:07 pm

Re: Installer not picking up changes in csproj file

Mon Mar 11, 2024 5:46 pm

I did send a test project as zip via email, did you not receive?

Catalin
Posts: 6506
Joined: Wed Jun 13, 2018 7:49 am

Re: Installer not picking up changes in csproj file

Wed Mar 13, 2024 3:44 pm

Hello Kraig,

Apologies, it looks like I somehow overlooked your email.

In order for me to further test and investigate this, please forward me a test-case as well.

Looking forward to hearing from you!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

KraigK
Posts: 6
Joined: Mon Jan 29, 2024 4:07 pm

Re: Installer not picking up changes in csproj file

Wed Mar 13, 2024 4:30 pm

Open the solution I sent, enter something for the <Version> and <FileVersion> tags in .csproj Run the app in debug mode and the version numbers you entered will be in the form's title bar. Now build an installer, install, run - the forms title bar does not reflect csproj
Catalin wrote:
Wed Mar 13, 2024 3:44 pm
Hello Kraig,

Apologies, it looks like I somehow overlooked your email.

In order for me to further test and investigate this, please forward me a test-case as well.

Looking forward to hearing from you!

Best regards,
Catalin

Return to “Common Problems”