Skip to content

Commit 9eb1c6b

Browse files
committed
Resolved #364: Add Sourcelink integration to be able to debug Abp packages.
1 parent eae0285 commit 9eb1c6b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

common.props

+4
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@
1212
<PropertyGroup Condition="'$(TargetFramework)'=='net452'">
1313
<DefineConstants>NET452</DefineConstants>
1414
</PropertyGroup>
15+
16+
<ItemGroup>
17+
<PackageReference Include="SourceLink.Create.CommandLine" Version="2.1.2" PrivateAssets="All" />
18+
</ItemGroup>
1519
</Project>

nupkg/pack.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ $projects = (
2121
# Rebuild solution
2222
Set-Location $slnPath
2323
& dotnet restore
24-
& dotnet msbuild /t:Rebuild /p:Configuration=Release
2524

2625
# Copy all nuget packages to the pack folder
2726
foreach($project in $projects) {
@@ -30,7 +29,8 @@ foreach($project in $projects) {
3029

3130
# Create nuget pack
3231
Set-Location $projectFolder
33-
& dotnet msbuild /t:pack /p:Configuration=Release /p:IncludeSymbols=true
32+
Remove-Item -Recurse (Join-Path $projectFolder "bin/Release")
33+
& dotnet msbuild /t:pack /p:Configuration=Release /p:IncludeSymbols=true /p:SourceLinkCreate=true
3434

3535
# Copy nuget package
3636
$projectPackPath = Join-Path $projectFolder ("/bin/Release/" + $project + ".*.nupkg")

0 commit comments

Comments
 (0)