diff --git a/API/API.csproj b/API/API.csproj
index 6e6cc3b..25f6e7c 100644
--- a/API/API.csproj
+++ b/API/API.csproj
@@ -5,6 +5,8 @@
enable
enable
Linux
+ true
+ $(NoWarn);1591
@@ -16,6 +18,7 @@
all
runtime; build; native; contentfiles; analyzers; buildtransitive
+
diff --git a/API/Api.cs b/API/Api.cs
index 459f60f..ab5c1d8 100644
--- a/API/Api.cs
+++ b/API/Api.cs
@@ -22,7 +22,12 @@ public class Api
});
builder.Services.AddCors(options => options.AddPolicy("AllowAll", p => p.AllowAnyOrigin().AllowAnyMethod()));
- builder.Services.AddSwaggerGen();
+ builder.Services.AddSwaggerGenNewtonsoftSupport();
+ builder.Services.AddSwaggerGen(opt =>
+ {
+ var xmlFilename = $"{Assembly.GetExecutingAssembly().GetName().Name}.xml";
+ opt.IncludeXmlComments(Path.Combine(AppContext.BaseDirectory, xmlFilename));
+ });
builder.Services.AddDbContext(options => options.UseSqlite(builder.Configuration.GetConnectionString("DefaultConnection"), optionsBuilder => optionsBuilder.MigrationsAssembly(Assembly.GetAssembly(GetType())!)));
diff --git a/SteamGameTimeTrack.sln.DotSettings.user b/SteamGameTimeTrack.sln.DotSettings.user
index 833d61c..469ce9a 100644
--- a/SteamGameTimeTrack.sln.DotSettings.user
+++ b/SteamGameTimeTrack.sln.DotSettings.user
@@ -5,4 +5,5 @@
ForceIncluded
ForceIncluded
ForceIncluded
- ForceIncluded
\ No newline at end of file
+ ForceIncluded
+ ForceIncluded
\ No newline at end of file