AMQNET-638 Add SourceLink support
diff --git a/package.ps1 b/package.ps1
index 21ffb7a..002736e 100644
--- a/package.ps1
+++ b/package.ps1
@@ -14,7 +14,7 @@
 # limitations under the License.

 

 $pkgname = "Apache.NMS"

-$pkgver = "1.8.0"

+$pkgver = "1.8.1"

 $frameworks = "net35", "net40", "netstandard2.0"

 

 write-progress "Creating package directory." "Initializing..."

@@ -52,6 +52,10 @@
     $nupkgdestination = "$pkgdir\$nupkg"

     Copy-Item -Path $nupkg -Destination $nupkgdestination

 

+    $snupkg = "$pkgname.$pkgver.snupkg"

+    $snupkgdestination = "$pkgdir\$snupkg"

+    Copy-Item -Path $snupkg -Destination $snupkgdestination

+

     # clean up temp

     Remove-Item temp -Recurse -ErrorAction Inquire

 

diff --git a/src/nms-api/nms-api.csproj b/src/nms-api/nms-api.csproj
index a5e210f..fa3c205 100644
--- a/src/nms-api/nms-api.csproj
+++ b/src/nms-api/nms-api.csproj
@@ -32,7 +32,7 @@
   <PropertyGroup>

     <GeneratePackageOnBuild>true</GeneratePackageOnBuild>

     <PackageId>Apache.NMS</PackageId>

-    <Version>1.8.0</Version>

+    <Version>1.8.1</Version>

     <Authors>Apache ActiveMQ</Authors>

     <Company>Apache Software Foundation</Company>

     <Product>Apache NMS API</Product>

@@ -47,6 +47,20 @@
     <PackageLicenseFile>LICENSE.txt</PackageLicenseFile>

   </PropertyGroup>

 

+  <!-- SourceLink Start -->

+  <PropertyGroup>

+    <!-- Embed source files that are not tracked by the source control manager in the PDB -->

+    <EmbedUntrackedSources>true</EmbedUntrackedSources>

+    <!-- Build symbol package (.snupkg) to distribute the PDB containing Source Link -->

+    <IncludeSymbols>true</IncludeSymbols>

+    <SymbolPackageFormat>snupkg</SymbolPackageFormat>

+  </PropertyGroup>

+  <ItemGroup>

+    <!-- Add PackageReference specific for your source control provider (see below) -->

+    <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>

+  </ItemGroup>

+  <!-- SourceLink End -->

+

   <ItemGroup>

     <None Include="..\..\LICENSE.txt" Pack="true" PackagePath="LICENSE.txt"/>

     <None Include="..\..\NOTICE.txt" Pack="true" PackagePath="NOTICE.txt"/>