📦 Include symbols (snupkg's) when creating nuget packages. #1780
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
As discussed in #1777 this PR is one of potentially many to come (not necessarily from me, though).
To help developers debug their applications, if a NuGet package (which is being consumed by the developers project) has Source link enabled, then a developer could optionally "step into" a method that is provided by the 3rd party NuGet package.
So in the case of this AWS .NET Sdk, a developer could step into some of the public methods provided in the AWS SDK NuGet's!
To enable this, I had up update the
.csproj
file for the relevant project which will bedotnet pack
into a NuGet package.As of the time of me creating the code changes today, there was 260+ projects in the .NET Standard solution! Egads! That's a lot. As such:
I've only started with the S3 project (in this PR).
the S3 project takes a dependency on the AWS SDK "Core" project, so I've also enabled that.
I'm not planning on enabling Source link for all of the other projects because that's too time consuming (for me) and I don't use 99% of them.
🚀 If this PR is successful, I'll also do 2x more for SNS and SQS (more services I use).
Motivation and Context
Testing
Testing requires
dotnet pack
'ing to occur.In the
sdk\services\s3
folder, type:dotnet pack -c RELEASE -o C:\temp\Nuget /p:ContinuousIntegrationBuild=true /p:version=100.2.3.4 .\AWSSDK.S3.NetStandard.csproj
/p:ContinuousIntegrationBuild=true
== deterministic builds, I believe./p:version=100.2.3.4
is just me making a version of the NuGet so it is to find in a NuGet package manager or on the hard disk.Before (the current vesrion on NuGet.org):
And after running the
dotnet pack
command:NOTE: similar info should also apply to the
AWSSDK.Core
NuGet package.Types of changes
Checklist
License
I couldn't find any documentation about how this solution/repo handles CI/CD.
As such, I couldn't find where to update the code where/how
dotnet pack
is ran. THIS STEP IS IMPORTANT and requires a possible modification (as listed above in this readme). Specifically the/p:ContinuousIntegrationBuild=true