Guest User

Untitled

a guest
Mar 20th, 2025
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.53 KB | None | 0 0
  1. csproj:
  2.  
  3. <Project Sdk="Microsoft.NET.Sdk.Razor">
  4.  
  5. <PropertyGroup>
  6. <TargetFramework>net9.0-windows10.0.19041.0</TargetFramework>
  7. <OutputType>WinExe</OutputType>
  8. <RootNamespace>IoloLogger</RootNamespace>
  9. <UseMaui>true</UseMaui>
  10. <SingleProject>true</SingleProject>
  11. <ImplicitUsings>enable</ImplicitUsings>
  12. <EnableDefaultCssItems>false</EnableDefaultCssItems>
  13. <Nullable>enable</Nullable>
  14.  
  15. <ApplicationTitle>IoloLogger</ApplicationTitle>
  16. <ApplicationId>com.companyname.iolologger</ApplicationId>
  17. <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
  18. <ApplicationVersion>1</ApplicationVersion>
  19.  
  20. <WindowsPackageType>None</WindowsPackageType>
  21.  
  22. <RuntimeIdentifier>win10-x64</RuntimeIdentifier>
  23. <SelfContained>true</SelfContained>
  24. <PublishSingleFile>true</PublishSingleFile>
  25. <PublishTrimmed>true</PublishTrimmed>
  26. <EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
  27. </PropertyGroup>
  28.  
  29.  
  30. <ItemGroup>
  31. <!-- App Icon -->
  32. <MauiIcon Include="Resources\AppIcon\logger.svg" Color="#FF0000" />
  33.  
  34. <!-- Splash Screen -->
  35. <MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />
  36.  
  37. <!-- Images -->
  38. <MauiImage Include="Resources\Images\*" />
  39. <MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" />
  40.  
  41. <!-- Custom Fonts -->
  42. <MauiFont Include="Resources\Fonts\*" />
  43.  
  44. <!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
  45. <MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
  46. </ItemGroup>
  47.  
  48. <ItemGroup>
  49. <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
  50. <PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="$(MauiVersion)" />
  51. <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
  52. </ItemGroup>
  53.  
  54. <ItemGroup>
  55. <MauiLinkerConfiguration Include="Linker.xml" />
  56. </ItemGroup>
  57.  
  58. <ItemGroup>
  59. <Folder Include="wwwroot\images\" />
  60. </ItemGroup>
  61.  
  62.  
  63. </Project>
  64.  
  65. Linker File:
  66. <?xml version="1.0" encoding="utf-8" ?>
  67. <linker>
  68. <!--
  69. MAUI & Blazor Core Assemblies
  70. (Most are already in your file, repeated here for clarity)
  71. -->
  72. <assembly fullname="IoloLogger" preserve="all"/>
  73. <assembly fullname="Microsoft.Maui" preserve="all"/>
  74. <assembly fullname="Microsoft.Maui.Controls" preserve="all"/>
  75. <assembly fullname="Microsoft.Maui.Controls.Xaml" preserve="all"/>
  76. <assembly fullname="Microsoft.AspNetCore.Components" preserve="all"/>
  77. <assembly fullname="Microsoft.AspNetCore.Components.Web" preserve="all"/>
  78. <assembly fullname="Microsoft.AspNetCore.Components.WebView" preserve="all"/>
  79. <assembly fullname="Microsoft.AspNetCore.Components.WebView.Maui" preserve="all"/>
  80. <assembly fullname="Microsoft.JSInterop" preserve="all"/>
  81.  
  82. <!--
  83. Windows UI & Interop
  84. -->
  85. <assembly fullname="Microsoft.UI" preserve="all"/>
  86. <assembly fullname="Microsoft.UI.Windowing" preserve="all"/>
  87. <assembly fullname="Microsoft.UI.Xaml" preserve="all"/>
  88. <assembly fullname="Microsoft.Windows.SDK.NET" preserve="all"/>
  89. <assembly fullname="WinRT.Runtime" preserve="all"/>
  90. <assembly fullname="Microsoft.Win32.Registry" preserve="all"/>
  91.  
  92. <!--
  93. .NET Extensions & Logging
  94. -->
  95. <assembly fullname="Microsoft.Extensions.DependencyInjection" preserve="all"/>
  96. <assembly fullname="Microsoft.Extensions.DependencyInjection.Abstractions" preserve="all"/>
  97. <assembly fullname="Microsoft.Extensions.Logging" preserve="all"/>
  98. <assembly fullname="Microsoft.Extensions.Logging.Abstractions" preserve="all"/>
  99. <assembly fullname="Microsoft.Extensions.Logging.Debug" preserve="all"/>
  100. <assembly fullname="Microsoft.Extensions.Configuration" preserve="all"/>
  101. <assembly fullname="Microsoft.Extensions.Configuration.Abstractions" preserve="all"/>
  102. <assembly fullname="Microsoft.Extensions.Configuration.Binder" preserve="all"/>
  103. <assembly fullname="Microsoft.Extensions.Configuration.Json" preserve="all"/>
  104. <assembly fullname="Microsoft.Extensions.FileProviders.Embedded" preserve="all"/>
  105. <assembly fullname="Microsoft.Extensions.FileProviders.Physical" preserve="all"/>
  106. <assembly fullname="Microsoft.Extensions.FileSystemGlobbing" preserve="all"/>
  107. <assembly fullname="Microsoft.Extensions.Options" preserve="all"/>
  108.  
  109. <!--
  110. ASP.NET Core Authorization, Forms, Metadata
  111. (Only preserve these if you're actually using them in your Blazor code)
  112. -->
  113. <assembly fullname="Microsoft.AspNetCore.Authorization" preserve="all"/>
  114. <assembly fullname="Microsoft.AspNetCore.Components.Forms" preserve="all"/>
  115. <assembly fullname="Microsoft.AspNetCore.Components.Metadata" preserve="all"/>
  116.  
  117. <!--
  118. System.IO
  119. -->
  120. <assembly fullname="System.IO.Compression" preserve="all"/>
  121. <assembly fullname="System.IO.Compression.ZipFile" preserve="all"/>
  122.  
  123. <!--
  124. Microsoft.IO.RecyclableMemoryStream
  125. (Preserve if you actually use it at runtime)
  126. -->
  127. <assembly fullname="Microsoft.IO.RecyclableMemoryStream" preserve="all"/>
  128.  
  129. <!--
  130. MAUI Graphics Win2D
  131. (Preserve if your MAUI app uses Win2D for graphics rendering on Windows)
  132. -->
  133. <assembly fullname="Microsoft.Maui.Graphics.Win2D" preserve="all"/>
  134. <assembly fullname="Microsoft.Maui.Graphics.Win2D.WinUIDesktop" preserve="all"/>
  135. <assembly fullname="Microsoft.Graphics.Win2D" preserve="all"/>
  136.  
  137. <!--
  138. WebView2, Windows App SDK
  139. (If your Blazor WebView references them via reflection or runtime usage)
  140. -->
  141. <assembly fullname="Microsoft.Web.WebView2" preserve="all"/>
  142. <assembly fullname="Microsoft.WindowsAppSDK" preserve="all"/>
  143. </linker>
  144.  
Advertisement
Add Comment
Please, Sign In to add comment