趁着Photino.Blazor作者还没升级.net 8之际,我发布版将photino.Blazor-2.6.0发布版升级到.Net 8。
1首先下载photino.Blazor-2.6.0的发布版
https://github.com/tryphotino/photino.Blazor/releases/tag/v2.6.0
2。将所有项目升级最新.net 8.0
3.将引用包都升级到最新版,重点是
1.photino.net 2.5.2
2.Microsoft.Extensions.Logging.Console 8.0.0
3.Microsoft.AspNetCore.Components.WebView 8.0.0
4.更改Photino.Blazor.csproj项目,增加以下配置
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'"> <PackageReference Include="Microsoft.AspNetCore.Components.WebView" Version="8.0.0" /> <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" /> </ItemGroup>
5、Photino.Blazor.Sample增加对nulastudio.NetCoreBeauty 1.2.9.5 的引用
6.更改Photino.Blazor.Sample.csproj文件
<PropertyGroup> <!-- beauty into sub-directory, default is libs, quote with "" if contains space --> <BeautyLibsDir>libs</BeautyLibsDir> <!-- dlls that you don't want to be moved or can not be moved --> <!-- <BeautyExcludes>dll1.dll;lib*;...</BeautyExcludes> --> <BeautyExcludes>Photino.Blazor.dll;System.Data.SQLite.dll;SQLite.Interop.dll</BeautyExcludes> <!--<BeautyExcludes>System.Data.SQLite.dll;SQLite.Interop.dll</BeautyExcludes>--> <!-- dlls that end users never needed, so hide them --> <!-- <BeautyHiddens>hostfxr;hostpolicy;*.deps.json;*.runtimeconfig*.json</BeautyHiddens> --> <!-- set to True if you want to disable --> <DisableBeauty>False</DisableBeauty> <!-- set to True if you don't want to generate NetCoreBeauty flag file --> <!-- do not beauty twice since there is no flag file to determine if beauty already --> <NoBeautyFlag>False</NoBeautyFlag> <ForceBeauty>False</ForceBeauty> <!-- <BeautyAfterTasks></BeautyAfterTasks> --> <!-- set to True if you want to disable --> <DisablePatch>False</DisablePatch> <!-- valid values: Error|Detail|Info --> <BeautyLogLevel>Error</BeautyLogLevel> <!-- set to a repo mirror if you have troble in connecting github --> </PropertyGroup>
7. 发布时不要勾选R2R 成功
Enjoy It ~_~
标签:SQLite,False,dll,photino,net8.0,Photino,Blazor From: https://www.cnblogs.com/robertyao/p/17838532.html