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

Svg doesn't display in publish version #16674

Open
1 task done
jeromelaban opened this issue May 10, 2024 Discussed in #16672 · 1 comment
Open
1 task done

Svg doesn't display in publish version #16674

jeromelaban opened this issue May 10, 2024 Discussed in #16672 · 1 comment

Comments

@jeromelaban
Copy link
Member

Discussed in #16672

Originally posted by limeniye May 10, 2024

Input information

I have an image.

<Image Height="50"
       HorizontalAlignment="Center"
       Source="ms-appx:///UnoApp77/Assets/Svg/backkkkk.svg"
       Stretch="Uniform" />

After executing the following command, 2 directories appear.

msbuild /r /t:Publish /p:Configuration=Release /p:RuntimeIdentifier=win-x64 /p:Platform=x64 /p:TargetFramework=net8.0-windows10.0.19041 /bl

But for some reason the image in the Release\net8.0-windows10.0.19041\win-x64\publish directory is not displayed.

image

Output

UnoApp77ImagesDoesntDisplayInPublish.zip

msbuild.zip

Package versions

<PackageVersion Include="Uno.Resizetizer" Version="1.5.0-dev.58" />
<PackageVersion Include="Uno.WinUI" Version="5.2.95" />

Platforms

  • WinUI
@jeromelaban
Copy link
Member Author

This looks like WinAppSDK issue, as I can repro the same behavior with a bare WinAppSDK app. Try moving your app to single project to avoid having assets in a separate library.

We'll track this with a WinUI issue, but even in WinUI there are separate duplicate files issues that Uno currently works around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant