Photino.Blazor 升級.net8.0 記事

趁着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>

新版必有加上 app.MainWindow.SetMinSize(1440, 960)不然打開只標題

7. 發佈時不要勾選R2R 成功

 Enjoy It ~_~

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章