From 2bcccf785f1ac9bc8183d2344a902e1af4387fce Mon Sep 17 00:00:00 2001
From: Jon Sagara <jonsagara@gmail.com>
Date: Wed, 15 Nov 2023 19:13:47 -0800
Subject: [PATCH] Add back OG Source Link since the built-in stuff doesn't seem
 to work.

---
 Directory.Build.props                                 |  2 +-
 .../Sagara.Core.AspNetCore.csproj                     |  4 ++++
 src/Sagara.Core.Caching/Sagara.Core.Caching.csproj    |  4 ++++
 src/Sagara.Core.Data/Sagara.Core.Data.csproj          |  4 ++++
 .../Sagara.Core.Logging.Serilog.csproj                |  4 ++++
 src/Sagara.Core/Sagara.Core.csproj                    | 11 +++++++----
 6 files changed, 24 insertions(+), 5 deletions(-)

diff --git a/Directory.Build.props b/Directory.Build.props
index f63ab8e..2f1e07b 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -5,7 +5,7 @@
 		<LangVersion>12.0</LangVersion>
 		
 		<!-- NuGet -->
-		<Version>2.0.2</Version>
+		<Version>2.0.3</Version>
 		<AssemblyVersion>2.0.0</AssemblyVersion>
 		<FileVersion>2.0.0</FileVersion>
 		<Authors>Jon Sagara</Authors>
diff --git a/src/Sagara.Core.AspNetCore/Sagara.Core.AspNetCore.csproj b/src/Sagara.Core.AspNetCore/Sagara.Core.AspNetCore.csproj
index 65f19f5..5633836 100644
--- a/src/Sagara.Core.AspNetCore/Sagara.Core.AspNetCore.csproj
+++ b/src/Sagara.Core.AspNetCore/Sagara.Core.AspNetCore.csproj
@@ -29,6 +29,10 @@
 	</ItemGroup>
 
 	<ItemGroup>
+		<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
+			<PrivateAssets>all</PrivateAssets>
+			<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
+		</PackageReference>
 		
 		<!-- Use the ASP.NET Core shared framework -->
 		<FrameworkReference Include="Microsoft.AspNetCore.App" />
diff --git a/src/Sagara.Core.Caching/Sagara.Core.Caching.csproj b/src/Sagara.Core.Caching/Sagara.Core.Caching.csproj
index d01ce26..2bf7ace 100644
--- a/src/Sagara.Core.Caching/Sagara.Core.Caching.csproj
+++ b/src/Sagara.Core.Caching/Sagara.Core.Caching.csproj
@@ -30,6 +30,10 @@
 	<ItemGroup>
 		<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.0" />
 		<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
+		<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
+			<PrivateAssets>all</PrivateAssets>
+			<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
+		</PackageReference>
 		<PackageReference Include="StackExchange.Redis" Version="2.7.4" />
 	</ItemGroup>
 
diff --git a/src/Sagara.Core.Data/Sagara.Core.Data.csproj b/src/Sagara.Core.Data/Sagara.Core.Data.csproj
index e9ff57a..8d314b6 100644
--- a/src/Sagara.Core.Data/Sagara.Core.Data.csproj
+++ b/src/Sagara.Core.Data/Sagara.Core.Data.csproj
@@ -31,6 +31,10 @@
 	<ItemGroup>
 		<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.0" />
 		<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
+		<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
+			<PrivateAssets>all</PrivateAssets>
+			<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
+		</PackageReference>
 	</ItemGroup>
 
 	<ItemGroup>
diff --git a/src/Sagara.Core.Logging.Serilog/Sagara.Core.Logging.Serilog.csproj b/src/Sagara.Core.Logging.Serilog/Sagara.Core.Logging.Serilog.csproj
index aff7b2d..07a7e34 100644
--- a/src/Sagara.Core.Logging.Serilog/Sagara.Core.Logging.Serilog.csproj
+++ b/src/Sagara.Core.Logging.Serilog/Sagara.Core.Logging.Serilog.csproj
@@ -32,6 +32,10 @@
 
 	<ItemGroup>
 		<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
+		<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
+			<PrivateAssets>all</PrivateAssets>
+			<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
+		</PackageReference>
 		<PackageReference Include="Serilog" Version="3.1.1" />
 		<PackageReference Include="Serilog.Extensions.Hosting" Version="8.0.0" />
 	</ItemGroup>
diff --git a/src/Sagara.Core/Sagara.Core.csproj b/src/Sagara.Core/Sagara.Core.csproj
index 78b6581..393417f 100644
--- a/src/Sagara.Core/Sagara.Core.csproj
+++ b/src/Sagara.Core/Sagara.Core.csproj
@@ -14,13 +14,12 @@
 		<PackageTags>Validation SequentialGuid Caching Enums</PackageTags>
 		<PackageReleaseNotes></PackageReleaseNotes>
 
-		<GenerateDocumentationFile>True</GenerateDocumentationFile>
-
 		<!-- SourceLink -->
-		<!--<IncludeSymbols>true</IncludeSymbols>
+		<IncludeSymbols>true</IncludeSymbols>
 		<SymbolPackageFormat>snupkg</SymbolPackageFormat>
 		<EmbedUntrackedSources>true</EmbedUntrackedSources>
-		<NeutralLanguage>en-US</NeutralLanguage>-->
+		<GenerateDocumentationFile>True</GenerateDocumentationFile>
+		<NeutralLanguage>en-US</NeutralLanguage>
 	</PropertyGroup>
 
 	<ItemGroup>
@@ -31,6 +30,10 @@
 
 	<ItemGroup>
 		<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="2.3.2" />
+		<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
+			<PrivateAssets>all</PrivateAssets>
+			<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
+		</PackageReference>
 		<PackageReference Include="NodaTime" Version="3.1.9" />
 	</ItemGroup>