no debug symbol in release

alphons <alphons@heijden.com> 1 Sep 2025, 08:33
41bad1032702cbe74cf918eb462271db1582b12a
1 files changed
  • src/WireGuardConfigGenerator/WireGuardConfigGenerator.csproj
diff --git a/src/WireGuardConfigGenerator/WireGuardConfigGenerator.csproj b/src/WireGuardConfigGenerator/WireGuardConfigGenerator.csproj
index dc7c573..272e1b7 100644
--- a/src/WireGuardConfigGenerator/WireGuardConfigGenerator.csproj
+++ b/src/WireGuardConfigGenerator/WireGuardConfigGenerator.csproj
@@ -1,21 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">
- <PropertyGroup>
- <OutputType>WinExe</OutputType>
- <TargetFramework>net8.0-windows</TargetFramework>
- <Nullable>enable</Nullable>
- <UseWindowsForms>true</UseWindowsForms>
- <ImplicitUsings>enable</ImplicitUsings>
- </PropertyGroup>
+ <PropertyGroup>
+ <OutputType>WinExe</OutputType>
+ <TargetFramework>net8.0-windows</TargetFramework>
+ <Nullable>enable</Nullable>
+ <UseWindowsForms>true</UseWindowsForms>
+ <ImplicitUsings>enable</ImplicitUsings>
+ </PropertyGroup>
- <ItemGroup>
- <None Remove="config.json" />
- </ItemGroup>
+ <PropertyGroup Condition="'$(Configuration)'=='Release'">
+ <DebugType>none</DebugType>
+ <DebugSymbols>false</DebugSymbols>
+ </PropertyGroup>
- <ItemGroup>
- <Content Include="config.json">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </Content>
- </ItemGroup>
+ <ItemGroup>
+ <None Remove="config.json" />
+ </ItemGroup>
+
+ <ItemGroup>
+ <Content Include="config.json">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ </ItemGroup>
</Project>
\ No newline at end of file