摘要: 1.将项目里的删除Spire.Pdf,安装Spire.Officefor.NETStandard. 2.安装SkiaSharp和SkiaSharp.NativeAssets.Linux 这两个的目的是为了替换System.Drawing.Common.以及兼容Linux。 阅读全文
posted @ 2023-11-29 11:39 飞天猪皮怪 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 错误 exec user process caused "exec fomat error" 在构建镜像的时候在本机运行没有问题,但是发到服务器上就不行,后来指定服务器对应的运行架构镜像才运行成功 docker buildx build -t imageName --platform=linux/a 阅读全文
posted @ 2023-07-04 19:59 飞天猪皮怪 阅读(90) 评论(0) 推荐(0) 编辑
摘要: appsettings.json "Kestrel": { "Endpoints": { "Http": { "Url": "http://*:5000" } } } 阅读全文
posted @ 2023-06-17 11:22 飞天猪皮怪 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 效果 正文 设置方向控制 因为我演示的是Android所以我这里以Android为例子。 找到 Platforms/Android/MainActivity.cs 文件,添加枚举ScreenOrientation = ScreenOrientation.Sensor,这个选项是应用程序的方向由传感器 阅读全文
posted @ 2023-03-07 09:20 飞天猪皮怪 阅读(520) 评论(0) 推荐(0) 编辑
摘要: 概述 这篇文章就是想要拓展下Shell中的Tab。 目前我还没有找到可以动态生成Tab的方法,所以我只能自己写一个,可能不够好,但或许是个思路。 代码:https://github.com/simphonydeveloper/MauiShellTabExample/ 正文 效果如图,PageA-Pa 阅读全文
posted @ 2023-03-03 16:02 飞天猪皮怪 阅读(301) 评论(0) 推荐(0) 编辑
摘要: Sharpnado.Tabs 它是一个主要实现MAUItab的插件(有一说一原生的tab究极难用) 地址 效果预览 阅读全文
posted @ 2023-03-01 18:52 飞天猪皮怪 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 当使用TabbedPage,动态生成Tab的时候,通常默认是ItemSource绑定数据源中的第一个。 当我们使用Navigation.PushAsync跳转到TabbedPage页面,我们可以使用TabbedPage的SelectedItem指定你选中的页面(ItemSource数据中的数据) m 阅读全文
posted @ 2023-03-01 10:14 飞天猪皮怪 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 注意是Shell中的Page <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.micr 阅读全文
posted @ 2023-02-28 15:16 飞天猪皮怪 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 错误一 禁用项目AOT https://stackoverflow.com/questions/74589209/net-maui-precompiling-failed-the-specified-response-can-not-be-read 错误二 检查执行发布命令的路径是否和你项目路劲一样 阅读全文
posted @ 2023-02-28 08:21 飞天猪皮怪 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 问题出现描述 我在向Resource文件夹下的Appicon和Splash里面分别添加了一个svg图标。 随后我更改项目csproj文件里面的图标,随后启动项目出现错误。 解决问题 首先我删除了bin目录里的MauiBlazorDemoApp.xml文件,然后重新生成项目 然后重新生成项目这两行直接 阅读全文
posted @ 2023-02-26 12:45 飞天猪皮怪 阅读(708) 评论(0) 推荐(0) 编辑