banditoth / maui-archiver-vscode

Visual Studio Code extension for archiving/publishing .NET MAUI applications
MIT License
35 stars 3 forks source link

Automatic Build Number Incrementation and Version Update Issue #11

Open HelloooJoe opened 2 months ago

HelloooJoe commented 2 months ago

I've encountered an issue where I'm unable to update both the app display version and the application version, despite having the correct settings in my main .csproj file as well as in the info.plist. This problem persists and I'm wondering if I might be overlooking a step or requirement. image

Additionally, I'm looking for a feature enhancement. Would it be possible to introduce functionality for automatically incrementing the build number? This would streamline our development process significantly.

banditoth commented 2 months ago

Hey @HelloooJoe

The ApplicationVersion must be an integer number. Maybe thats why you encounter issues. Automatic versioning should be a great idea, but im not planning to invest time on it right now. I leave this enhancement opened until then

HelloooJoe commented 2 months ago

Hey @HelloooJoe

The ApplicationVersion must be an integer number. Maybe thats why you encounter issues. Automatic versioning should be a great idea, but im not planning to invest time on it right now. I leave this enhancement opened until then

I tried that as well, the screenshot you're seeing was one of many attempts to find out why the version numbers aren't incrementing.

As for not being able to invest time, its all good. Your extension does 99% of the work. I can just copy the script it generates and manually add the version numbers

e.g. dotnet publish "...Main.csproj" -f net8.0-ios -c Release -p:ArchiveOnBuild=true -p:RuntimeIdentifier=ios-arm64 -p:CodesignKey="iPhone Distribution: XXX" -p:CodesignProvision="AppStoreProfile" -p:ApplicationDisplayVersion=1.0.3 -p:ApplicationVersion=3