Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant have ApplicationDisplayVersion Conditionally in Maui Projects #25619

Open
vsfeedback opened this issue Oct 30, 2024 · 0 comments
Open

Cant have ApplicationDisplayVersion Conditionally in Maui Projects #25619

vsfeedback opened this issue Oct 30, 2024 · 0 comments
Labels
area-single-project Splash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizer t/bug Something isn't working
Milestone

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


i have this in maui csproj

<PropertyGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">
        <!-- macOS specific ApplicationVersion -->
        <ApplicationDisplayVersion>2.01</ApplicationDisplayVersion>
    </PropertyGroup>
  
<PropertyGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) != 'maccatalyst'">    
      <ApplicationDisplayVersion>2.0</ApplicationDisplayVersion>
    </PropertyGroup>

because of this the there is a problem in generating assets.json file.

if i have only one applicationdisplayversion then it runs in the ios simulator without any problem. somehow it is reporting this error

Unable to read project information for The property PackageVersion was expected to have a single value across all target frameworks, but instead had the following values: 2.0, 2.01

however, i don't specify two values. i set the ApplicationDisplayVersion based on condition and Visual Studio is not considering this as unique based on the platform.


Original Comments

Feedback Bot on 10/23/2024, 06:39 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

@jfversluis jfversluis added t/bug Something isn't working area-single-project Splash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizer labels Oct 31, 2024
@jfversluis jfversluis added this to the Backlog milestone Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-single-project Splash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizer t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants