Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance project and target files to generate debugging symbol package files #2137

Merged

Conversation

arellegue
Copy link
Contributor

@arellegue arellegue commented Aug 24, 2023

Adding more context:
when generating nuget with something similar to:

nuget pack MyPackage.nuspec -Symbols -SymbolPackageFormat snupkg

The command is designed to search for PDB files within the Nuspec. Consequently, PDBs should be incorporated into the file section, excluding the reference part. The inclusion of -Symbols -SymbolPackageFormat snupkg in the command ensures that these files are not copied to the lib folder of the NuGet.

To streamline our local builds, we have the option to skip the creation of the snupkg NuGet package and configure our pipeline to execute the appropriate command for this task.

links to support matterial:
https://learn.microsoft.com/en-us/nuget/create-packages/symbol-packages-snupkg
https://devblogs.microsoft.com/dotnet/producing-packages-with-source-link/

… Directory.Build.props which is automatically imported.
@codecov
Copy link

codecov bot commented Aug 28, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (838b931) 72.50% compared to head (bfef5aa) 72.45%.
Report is 2 commits behind head on main.

Files Patch % Lines
...osoft/Data/SqlClient/Server/ValueUtilsSmi.netfx.cs 0.00% 2 Missing ⚠️
...qlClient/src/Microsoft/Data/SqlClient/SqlBuffer.cs 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2137      +/-   ##
==========================================
- Coverage   72.50%   72.45%   -0.05%     
==========================================
  Files         310      310              
  Lines       61872    61873       +1     
==========================================
- Hits        44858    44829      -29     
- Misses      17014    17044      +30     
Flag Coverage Δ
addons 92.88% <ø> (ø)
netcore 76.66% <66.66%> (-0.05%) ⬇️
netfx 70.01% <40.00%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

build.proj Outdated Show resolved Hide resolved
build.proj Outdated Show resolved Hide resolved
build.proj Outdated Show resolved Hide resolved
build.proj Outdated Show resolved Hide resolved
src/Directory.Build.props Show resolved Hide resolved
tools/specs/Microsoft.Data.SqlClient.nuspec Outdated Show resolved Hide resolved
@DavoudEshtehari DavoudEshtehari added this to the 5.2.0-preview4 milestone Oct 12, 2023
@DavoudEshtehari DavoudEshtehari changed the title Enchance project and target files to generate debugging symbol package files Enhance project and target files to generate debugging symbol package files Oct 27, 2023
…AlwaysEncrypted.AzureKeyVaultProvider.csproj.
src/Directory.Build.props Outdated Show resolved Hide resolved
Removing  <IncludeSymbols>true</IncludeSymbols> and <SymbolPackageFormat>snupkg</SymbolPackageFormat> as we do it inside pack command.
Adding extra line at the end of Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider.csproj
@JRahnama
Copy link
Member

JRahnama commented Jan 21, 2024

/azurepiplines run

…ckageGeneration

# Conflicts:
#	src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj
@DavoudEshtehari DavoudEshtehari merged commit 7fd34df into dotnet:main Jan 24, 2024
148 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants