我可以将.svg文件设置为MAUI应用图标
我无法将.svg文件设置为我的应用图标。我将.svg文件放在资源文件夹中,并将其“构建操作”属性更改为Mauiicon和我写的.csproj文件: [1]: https://i.sstatic.net/8ydao.png
I can't set my .svg file as my app icon. I put the .svg file inside the Resources folder and changed its "Build Actions" properties to MauiIcon and in the .csproj file I wrote:
[1]: https://i.sstatic.net/8YDAo.png
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试以下步骤
使其成为基本的SVG文件,您可以使用PNG文件并使用工具将其转换为SVG文件。
调用文件与默认的so
appicon.svg
相同,在您的.csproj
中编辑
请参阅 https://github.com/dotnet/maui/sissues/3755555555555555555555,issuecomment-1063138958 。
Try the following steps
Make it a basic svg file , you can take a png file and use tool to convert it to svg file .
Call the file the same as the default so
appicon.svg
, edit in your.csproj
Refer to https://github.com/dotnet/maui/issues/3755#issuecomment-1063138958 .