Open cckring opened 1 week ago
We've found some similar issues:
If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.
Note: You can give me feedback by 👍 or 👎 this comment.
This issue has been verified using Visual Studio 17.13 Preview 1(9.0.0-rc.2.24503.2 & 8.0.82 & 8.0.93). Can repro this issue.
I think this is because ApplicationVersion is a MAUI platform feature and it is used to set Version which in turn sets PackageVersion. However, the net8.0
TFM does not have any of this and stays 1.0.
To fix this, make sure to set the PackageVersion to match ApplicationVersion..
Description
We have a feature rich MAUI application for iOS and Android which unfortunately does not have any unit tests.
I have followed the guide setting up the MAUI app and then I have added a UnitTest project also following the guide.
However I have found that my solution will only compile if I put 1.0 in the ApplicationDisplayVersion
When I put the correct value 2.5.0 for our app in the
The solution will not compile.
I have just tried to download Gerald Versluis' sample project. In that I can reproduce the same error when I replace 1.0 with 2.5
I get this build error:
WHen I open the file MauixUnitTestSample\MauixUnitTestSample\obj\project.assets.json I see this information which inspired me to try to change the ApplicationDisplayVersion.
I trust that you can just try the same with Gerald's project?
Steps to Reproduce
to
Link to public reproduction project repository
https://github.com/jfversluis/MauixUnitTestSample
Version with bug
8.0.82 SR8.2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
No response
Affected platforms
iOS, Android
Affected platform versions
No response
Did you find any workaround?
In our production app I manually change the2.5.0 to 1.0.0 when I need to run the tests.
I am in the process of putting it into a Visual Studio App configuraiton, but have not done so yet.
Relevant log output