diff --git a/EnvelopeGenerator.Application/EnvelopeGenerator.Application.csproj b/EnvelopeGenerator.Application/EnvelopeGenerator.Application.csproj
index b53c961c..3fe00e17 100644
--- a/EnvelopeGenerator.Application/EnvelopeGenerator.Application.csproj
+++ b/EnvelopeGenerator.Application/EnvelopeGenerator.Application.csproj
@@ -4,6 +4,8 @@
net7.0;net8.0;net9.0
enable
enable
+ true
+ bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml
diff --git a/EnvelopeGenerator.GeneratorAPI/EnvelopeGenerator.GeneratorAPI.csproj b/EnvelopeGenerator.GeneratorAPI/EnvelopeGenerator.GeneratorAPI.csproj
index 2648a49a..9ac01c63 100644
--- a/EnvelopeGenerator.GeneratorAPI/EnvelopeGenerator.GeneratorAPI.csproj
+++ b/EnvelopeGenerator.GeneratorAPI/EnvelopeGenerator.GeneratorAPI.csproj
@@ -14,6 +14,7 @@
1.1.0
1.1.0
Copyright © 2025 Digital Data GmbH. All rights reserved.
+ bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml
diff --git a/EnvelopeGenerator.GeneratorAPI/Program.cs b/EnvelopeGenerator.GeneratorAPI/Program.cs
index a5d1b05a..3bffafe9 100644
--- a/EnvelopeGenerator.GeneratorAPI/Program.cs
+++ b/EnvelopeGenerator.GeneratorAPI/Program.cs
@@ -49,8 +49,11 @@ builder.Services.AddSwaggerGen(options =>
},
});
- var xmlFilename = $"{Assembly.GetExecutingAssembly().GetName().Name}.xml";
- options.IncludeXmlComments(Path.Combine(AppContext.BaseDirectory, xmlFilename));
+ var xmlFiles = Directory.GetFiles(AppContext.BaseDirectory, "*.xml");
+ foreach (var xmlFile in xmlFiles)
+ {
+ options.IncludeXmlComments(xmlFile);
+ }
});
builder.Services.AddOpenApi();
// DbContext