-
Notifications
You must be signed in to change notification settings - Fork 751
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
Support for assets provided by library #2502
Comments
Thanks for the report! Indeed, this scenario is not yet supported. |
@ajpinedam Are you planning to look into this? |
This could be very useful for our use case, specially for fonts assets |
Until this issue is fixed, when working with a solution which contains a project with custom assets (assuming it is in a project named <ItemGroup>
<Content Include="..\MyLibrary\Assets\**" Link="Assets\%(RecursiveDir)\%(FileName)%(Extension)" />
</ItemGroup> This content could be located in a separate msbuild file (e.g. <Project>
<ItemGroup>
<Content Include="$(MSBuildThisFileDirectory)Assets\**"
Link="Assets\%(RecursiveDir)\%(FileName)%(Extension)" />
</ItemGroup>
</Project> And include it in the projects heads as follows: <Import Project="..\MyLibrary\ProjectAssets.props" /> The path of the assets will local to the project head, though, with this workaround. WinUI prefixes assets with the library containing the assets (e.g. The same workaround can be applied to nuget packages, and the |
Current behavior
<Image Source="ms-appx:///Bs.Kehu/Assets/header.png" />
The image is displayed in uwp and android. But in iOS:
Maybe it's not a bug. But I failed to get any help about this. I propose to add some help about this.
Thanks!
Expected behavior
How to reproduce it (as minimally and precisely as possible)
Environment
Nuget Package:
Package Version(s):
Affected platform(s):
Visual Studio:
Relevant plugins:
Anything else we need to know?
The text was updated successfully, but these errors were encountered: