forked from bitfoundation/bitplatform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBit.BlazorUI.Demo.Client.Windows.csproj
69 lines (62 loc) · 3.56 KB
/
Bit.BlazorUI.Demo.Client.Windows.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net9.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UseWindowsForms>true</UseWindowsForms>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<RootNamespace>Bit.BlazorUI.Demo.Client.Windows</RootNamespace>
<StartupObject>Bit.BlazorUI.Demo.Client.Windows.Program</StartupObject>
<ApplicationIcon>wwwroot\favicon.ico</ApplicationIcon>
<NoWarn>$(NoWarn);WFO5001</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<PublishTrimmed>true</PublishTrimmed>
<TrimMode>partial</TrimMode>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<_SuppressWinFormsTrimError>true</_SuppressWinFormsTrimError>
<JsonSerializerIsReflectionEnabledByDefault>true</JsonSerializerIsReflectionEnabledByDefault>
<CompressionEnabled>false</CompressionEnabled>
<!-- Enabling compression generates `.br` and `.gz` files for static assets.
While this is beneficial for Blazor WebAssembly, it only adds to the app bundle size in MAUI without offering any advantages. -->
</PropertyGroup>
<ItemGroup>
<Using Include="Bit.BlazorUI.Demo.Client.Core.Services.Contracts" />
<Using Include="Bit.BlazorUI.Demo.Client.Core.Services" />
<Using Include="Bit.BlazorUI.Demo.Shared" />
<Watch Remove="*.scss" />
<PackageReference Include="Bit.CodeAnalyzers" Version="9.6.0-pre-06">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Bit.SourceGenerators" Version="9.6.0-pre-06">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="9.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.WindowsForms" Version="9.0.40" />
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.3065.39" />
<PackageReference Include="Velopack" Version="0.0.1053" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<Content Include="..\Bit.BlazorUI.Demo.Client.Maui\wwwroot\index.html" Link="wwwroot\index.html">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include=".config\dotnet-tools.json" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Bit.BlazorUI.Demo.Client.Core\Bit.BlazorUI.Demo.Client.Core.csproj" />
</ItemGroup>
<Target Name="RemoveFilesAfterPublish" AfterTargets="Publish">
<!-- Unneccecary files because of Microsoft.Web.WebView2.Wpf etc. -->
<ItemGroup>
<FilesToDelete Include="$(PublishDir)wpfgfx_cor3.dll" />
<FilesToDelete Include="$(PublishDir)WindowsBase.dll" />
<FilesToDelete Include="$(PublishDir)PresentationCore.dll" />
<FilesToDelete Include="$(PublishDir)D3DCompiler_47_cor3.dll" />
<FilesToDelete Include="$(PublishDir)PresentationFramework.dll" />
<FilesToDelete Include="$(PublishDir)System.Windows.Forms.Design.dll" />
</ItemGroup>
<Delete Files="@(FilesToDelete)" />
</Target>
</Project>