<AvaloniaResource>item in your project file. The MVVM Application template by default includes all files in the
Assetsdirectory as an
avares:URL scheme. For example if the asset is contained in an assembly called
MyAssembly.dllthen you would use:
<EmbeddedResource>MSBuild item which causes the file to be included in the assembly as a manifest resource.