Skip to content

Commit

Permalink
Resolved #364: Add Sourcelink integration to be able to debug Abp pac…
Browse files Browse the repository at this point in the history
…kages.
  • Loading branch information
hikalkan committed May 19, 2017
1 parent eae0285 commit 9eb1c6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions common.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@
<PropertyGroup Condition="'$(TargetFramework)'=='net452'">
<DefineConstants>NET452</DefineConstants>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="SourceLink.Create.CommandLine" Version="2.1.2" PrivateAssets="All" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions nupkg/pack.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ $projects = (
# Rebuild solution
Set-Location $slnPath
& dotnet restore
& dotnet msbuild /t:Rebuild /p:Configuration=Release

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

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

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

0 comments on commit 9eb1c6b

Please sign in to comment.