Skip to content

Commit

Permalink
Build .snupkg archives for nuget.org publishing
Browse files Browse the repository at this point in the history
This allows the VS debugger to automatically find the pdb files and allow stepping into MessagePack code from a consuming application.
  • Loading branch information
AArnott committed Nov 8, 2019
1 parent cb1806a commit a63be88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Directory.Build.props
Expand Up @@ -18,7 +18,8 @@

<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)LICENSE" Pack="true" PackagePath="" />
Expand Down
1 change: 1 addition & 0 deletions azure-pipelines/build.yml
Expand Up @@ -117,6 +117,7 @@ steps:
inputs:
Contents: |
bin/**/$(BuildConfiguration)/**/*.nupkg
bin/**/$(BuildConfiguration)/**/*.snupkg
bin/**/$(BuildConfiguration)/**/*.vsix
TargetFolder: $(Build.ArtifactStagingDirectory)/deployables
flattenFolders: true
Expand Down
1 change: 1 addition & 0 deletions src/MessagePackAnalyzer/MessagePackAnalyzer.csproj
Expand Up @@ -7,6 +7,7 @@
<PackageTags>MsgPack;MessagePack;Serialization;Formatter;Analyzer</PackageTags>
<IncludeBuildOutput>false</IncludeBuildOutput>
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);PackBuildOutputs</TargetsForTfmSpecificContentInPackage>
<IncludeSymbols>false</IncludeSymbols>
</PropertyGroup>
<ItemGroup>
<Content Include="tools\*.ps1" Pack="true" PackagePath="tools\" />
Expand Down

0 comments on commit a63be88

Please sign in to comment.