Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- csproj:
- <Project Sdk="Microsoft.NET.Sdk.Razor">
- <PropertyGroup>
- <TargetFramework>net9.0-windows10.0.19041.0</TargetFramework>
- <OutputType>WinExe</OutputType>
- <RootNamespace>IoloLogger</RootNamespace>
- <UseMaui>true</UseMaui>
- <SingleProject>true</SingleProject>
- <ImplicitUsings>enable</ImplicitUsings>
- <EnableDefaultCssItems>false</EnableDefaultCssItems>
- <Nullable>enable</Nullable>
- <ApplicationTitle>IoloLogger</ApplicationTitle>
- <ApplicationId>com.companyname.iolologger</ApplicationId>
- <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
- <ApplicationVersion>1</ApplicationVersion>
- <WindowsPackageType>None</WindowsPackageType>
- <RuntimeIdentifier>win10-x64</RuntimeIdentifier>
- <SelfContained>true</SelfContained>
- <PublishSingleFile>true</PublishSingleFile>
- <PublishTrimmed>true</PublishTrimmed>
- <EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
- </PropertyGroup>
- <ItemGroup>
- <!-- App Icon -->
- <MauiIcon Include="Resources\AppIcon\logger.svg" Color="#FF0000" />
- <!-- Splash Screen -->
- <MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />
- <!-- Images -->
- <MauiImage Include="Resources\Images\*" />
- <MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" />
- <!-- Custom Fonts -->
- <MauiFont Include="Resources\Fonts\*" />
- <!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
- <MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
- </ItemGroup>
- <ItemGroup>
- <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
- <PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="$(MauiVersion)" />
- <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
- </ItemGroup>
- <ItemGroup>
- <MauiLinkerConfiguration Include="Linker.xml" />
- </ItemGroup>
- <ItemGroup>
- <Folder Include="wwwroot\images\" />
- </ItemGroup>
- </Project>
- Linker File:
- <?xml version="1.0" encoding="utf-8" ?>
- <linker>
- <!--
- MAUI & Blazor Core Assemblies
- (Most are already in your file, repeated here for clarity)
- -->
- <assembly fullname="IoloLogger" preserve="all"/>
- <assembly fullname="Microsoft.Maui" preserve="all"/>
- <assembly fullname="Microsoft.Maui.Controls" preserve="all"/>
- <assembly fullname="Microsoft.Maui.Controls.Xaml" preserve="all"/>
- <assembly fullname="Microsoft.AspNetCore.Components" preserve="all"/>
- <assembly fullname="Microsoft.AspNetCore.Components.Web" preserve="all"/>
- <assembly fullname="Microsoft.AspNetCore.Components.WebView" preserve="all"/>
- <assembly fullname="Microsoft.AspNetCore.Components.WebView.Maui" preserve="all"/>
- <assembly fullname="Microsoft.JSInterop" preserve="all"/>
- <!--
- Windows UI & Interop
- -->
- <assembly fullname="Microsoft.UI" preserve="all"/>
- <assembly fullname="Microsoft.UI.Windowing" preserve="all"/>
- <assembly fullname="Microsoft.UI.Xaml" preserve="all"/>
- <assembly fullname="Microsoft.Windows.SDK.NET" preserve="all"/>
- <assembly fullname="WinRT.Runtime" preserve="all"/>
- <assembly fullname="Microsoft.Win32.Registry" preserve="all"/>
- <!--
- .NET Extensions & Logging
- -->
- <assembly fullname="Microsoft.Extensions.DependencyInjection" preserve="all"/>
- <assembly fullname="Microsoft.Extensions.DependencyInjection.Abstractions" preserve="all"/>
- <assembly fullname="Microsoft.Extensions.Logging" preserve="all"/>
- <assembly fullname="Microsoft.Extensions.Logging.Abstractions" preserve="all"/>
- <assembly fullname="Microsoft.Extensions.Logging.Debug" preserve="all"/>
- <assembly fullname="Microsoft.Extensions.Configuration" preserve="all"/>
- <assembly fullname="Microsoft.Extensions.Configuration.Abstractions" preserve="all"/>
- <assembly fullname="Microsoft.Extensions.Configuration.Binder" preserve="all"/>
- <assembly fullname="Microsoft.Extensions.Configuration.Json" preserve="all"/>
- <assembly fullname="Microsoft.Extensions.FileProviders.Embedded" preserve="all"/>
- <assembly fullname="Microsoft.Extensions.FileProviders.Physical" preserve="all"/>
- <assembly fullname="Microsoft.Extensions.FileSystemGlobbing" preserve="all"/>
- <assembly fullname="Microsoft.Extensions.Options" preserve="all"/>
- <!--
- ASP.NET Core Authorization, Forms, Metadata
- (Only preserve these if you're actually using them in your Blazor code)
- -->
- <assembly fullname="Microsoft.AspNetCore.Authorization" preserve="all"/>
- <assembly fullname="Microsoft.AspNetCore.Components.Forms" preserve="all"/>
- <assembly fullname="Microsoft.AspNetCore.Components.Metadata" preserve="all"/>
- <!--
- System.IO
- -->
- <assembly fullname="System.IO.Compression" preserve="all"/>
- <assembly fullname="System.IO.Compression.ZipFile" preserve="all"/>
- <!--
- Microsoft.IO.RecyclableMemoryStream
- (Preserve if you actually use it at runtime)
- -->
- <assembly fullname="Microsoft.IO.RecyclableMemoryStream" preserve="all"/>
- <!--
- MAUI Graphics Win2D
- (Preserve if your MAUI app uses Win2D for graphics rendering on Windows)
- -->
- <assembly fullname="Microsoft.Maui.Graphics.Win2D" preserve="all"/>
- <assembly fullname="Microsoft.Maui.Graphics.Win2D.WinUIDesktop" preserve="all"/>
- <assembly fullname="Microsoft.Graphics.Win2D" preserve="all"/>
- <!--
- WebView2, Windows App SDK
- (If your Blazor WebView references them via reflection or runtime usage)
- -->
- <assembly fullname="Microsoft.Web.WebView2" preserve="all"/>
- <assembly fullname="Microsoft.WindowsAppSDK" preserve="all"/>
- </linker>
Advertisement
Add Comment
Please, Sign In to add comment