Skip to content

Commit 27afbea

Browse files
committed
Disable debug symbols in Release builds for core projects
Added PropertyGroup to VectraCtl.Core.csproj and VectraCtl.Infrastructure.csproj to disable debug symbols and set DebugType to None for Release configuration, ensuring no debugging information is included in Release builds. #21
1 parent ce854cb commit 27afbea

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎src/VectraCtl.Core/VectraCtl.Core.csproj‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
</PropertyGroup>
8+
9+
<PropertyGroup Condition="'$(Configuration)'=='Release'">
10+
<DebugSymbols>False</DebugSymbols>
11+
<DebugType>None</DebugType>
12+
</PropertyGroup>
813

914
</Project>

‎src/VectraCtl.Infrastructure/VectraCtl.Infrastructure.csproj‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
<Nullable>enable</Nullable>
77
</PropertyGroup>
88

9+
<PropertyGroup Condition="'$(Configuration)'=='Release'">
10+
<DebugSymbols>False</DebugSymbols>
11+
<DebugType>None</DebugType>
12+
</PropertyGroup>
13+
914
<ItemGroup>
1015
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.5" />
1116
<PackageReference Include="Octokit" Version="14.0.0" />

0 commit comments

Comments
 (0)