Iceshrimp.NET/Directory.Build.props
Laura Hausmann 9b1db6e086
[sln] Update version to be in line with security hotfix release
This avoids "am I vulnerable to this?" confusion if running a :dev image or a -git package.
2024-07-23 21:25:42 +02:00

54 lines
2.1 KiB
XML

<Project>
<!-- Target framework & language version -->
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<!-- Common build options -->
<PropertyGroup>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<InvariantGlobalization>true</InvariantGlobalization>
<SatelliteResourceLanguages>none</SatelliteResourceLanguages>
<UseCurrentRuntimeIdentifier>true</UseCurrentRuntimeIdentifier>
</PropertyGroup>
<!-- Analyze dependencies for all dependencies, not just direct ones. Remove when upgrading to net90-->
<PropertyGroup>
<NuGetAuditMode>all</NuGetAuditMode>
</PropertyGroup>
<!-- Except low and medium severity vulnerable dependency warnings from TreatWarningsAsErrors, leaving high and critical severity ones intact -->
<PropertyGroup>
<WarningsNotAsErrors>NU1901,NU1902</WarningsNotAsErrors>
</PropertyGroup>
<!-- Version metadata -->
<PropertyGroup>
<VersionPrefix>2024.1</VersionPrefix>
<VersionSuffix>beta2.security2</VersionSuffix>
</PropertyGroup>
<ItemGroup>
<AssemblyMetadata Include="codename" Value="phenidate" />
<AssemblyMetadata Include="edition" Value="enterprise" />
</ItemGroup>
<!-- Embed debug info instead of generating PDBs in release configuration -->
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugType>embedded</DebugType>
</PropertyGroup>
<!-- Don't copy blazor debug files to output directory in release configuration -->
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<BlazorWebAssemblyOmitDebugProxyOutput>true</BlazorWebAssemblyOmitDebugProxyOutput>
<PreserveCompilationContext>false</PreserveCompilationContext>
</PropertyGroup>
<!-- Enable Blazor AOT compilation when EnableAOT build flag is set -->
<PropertyGroup Condition="'$(EnableAOT)' == 'true'">
<RunAOTCompilation>true</RunAOTCompilation>
</PropertyGroup>
</Project>