mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
44c141be7c
* fix Locales.Designer.cs NOT updated when compile after Locale.*.resx changed in Visual Studio 2022. * use PublicResXFileCodeGenerator instead of ResXFileCodeGenerator to make sure access modifier is 'public' in Visual Studio 2022. * use ResourceManager.GetResourceSet instead of collecting properties by reflection. * remove translation warnings in Visual Studio's ResXManager extension.
65 lines
2.9 KiB
XML
65 lines
2.9 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<OutputType>WinExe</OutputType>
|
|
<TargetFramework>net8.0</TargetFramework>
|
|
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
|
|
<ApplicationManifest>App.manifest</ApplicationManifest>
|
|
<ApplicationIcon>App.ico</ApplicationIcon>
|
|
<Version>8.4</Version>
|
|
<BuiltInComInteropSupport>false</BuiltInComInteropSupport>
|
|
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
|
|
<SuppressTrimAnalysisWarnings>true</SuppressTrimAnalysisWarnings>
|
|
|
|
<Product>SourceGit</Product>
|
|
<Description>OpenSource GIT client</Description>
|
|
<Company>sourcegit-scm</Company>
|
|
<Copyright>Copyright © 2024 sourcegit-scm.</Copyright>
|
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
|
<PackageProjectUrl>https://github.com/sourcegit-scm/sourcegit.git</PackageProjectUrl>
|
|
<RepositoryUrl>https://github.com/sourcegit-scm/sourcegit.git</RepositoryUrl>
|
|
<RepositoryType>Public</RepositoryType>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Linux'))">
|
|
<DefineConstants>$(DefineConstants);USE_FONT_INTER</DefineConstants>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<AvaloniaResource Include="App.ico" />
|
|
<AvaloniaResource Include="Resources/Fonts/*" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Update="Resources/Locales.Designer.cs">
|
|
<DesignTime>True</DesignTime>
|
|
<AutoGen>True</AutoGen>
|
|
<DependentUpon>Locales.resx</DependentUpon>
|
|
</Compile>
|
|
<EmbeddedResource Update="Resources/Locales.resx">
|
|
<Generator>PublicResXFileCodeGenerator</Generator>
|
|
<LastGenOutput>Locales.Designer.cs</LastGenOutput>
|
|
</EmbeddedResource>
|
|
<EmbeddedResource Update="Resources/Locales.*.resx">
|
|
<Generator>PublicResXFileCodeGenerator</Generator>
|
|
<DependentUpon>Locales.resx</DependentUpon>
|
|
</EmbeddedResource>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Avalonia" Version="11.0.10" />
|
|
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.0.10" Condition="$([MSBuild]::IsOSPlatform('Linux'))" />
|
|
<PackageReference Include="Avalonia.Desktop" Version="11.0.10" />
|
|
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.10" />
|
|
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.0.10" />
|
|
<PackageReference Include="Avalonia.AvaloniaEdit" Version="11.0.6" />
|
|
<PackageReference Include="Avalonia.Diagnostics" Version="11.0.10" Condition="'$(Configuration)' == 'Debug'" />
|
|
<PackageReference Include="AvaloniaEdit.TextMate" Version="11.0.6" />
|
|
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
|
|
<PackageReference Include="TextMateSharp.Grammars" Version="1.0.56" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<TrimmerRootAssembly Include="SourceGit" />
|
|
<TrimmerRootAssembly Include="Avalonia.Themes.Fluent" />
|
|
</ItemGroup>
|
|
</Project>
|