-
Notifications
You must be signed in to change notification settings - Fork 1.1k
CopyDebugSymbolFilesFromPackages does not copy pdbs from runtime dir #38322
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
Comments
for anyone else who gets here, this is current approach i am using to get all the pdbs
|
NuGet does not output "related" within "runtimeTargets" into project.assets.json like this: "Microsoft.Data.SqlClient/5.1.4": {
"type": "package",
"dependencies": {
"Azure.Identity": "1.10.3",
"Microsoft.Data.SqlClient.SNI.runtime": "5.1.1",
"Microsoft.Identity.Client": "4.56.0",
"Microsoft.IdentityModel.JsonWebTokens": "6.24.0",
"Microsoft.IdentityModel.Protocols.OpenIdConnect": "6.24.0",
"Microsoft.SqlServer.Server": "1.0.0",
"System.Configuration.ConfigurationManager": "6.0.1",
"System.Diagnostics.DiagnosticSource": "6.0.1",
"System.Runtime.Caching": "6.0.0",
"System.Security.Cryptography.Cng": "5.0.0",
"System.Security.Principal.Windows": "5.0.0",
"System.Text.Encoding.CodePages": "6.0.0",
"System.Text.Encodings.Web": "6.0.0"
},
"compile": {
"ref/net6.0/Microsoft.Data.SqlClient.dll": {
"related": ".pdb;.xml"
}
},
"runtime": {
"lib/net6.0/Microsoft.Data.SqlClient.dll": {
"related": ".pdb;.xml"
}
},
"runtimeTargets": {
"runtimes/unix/lib/net6.0/Microsoft.Data.SqlClient.dll": {
"assetType": "runtime",
// NuGet omits "related": ".pdb",
"rid": "unix"
},
"runtimes/win/lib/net6.0/Microsoft.Data.SqlClient.dll": {
"assetType": "runtime",
// NuGet omits "related": ".pdb",
"rid": "win"
}
}
}, And even if did, the ResolvePackageAssets task in .NET SDK would ignore those. Is .NET SDK is supposed to get the "related" property from within "runtime" and apply it to equally-named assets within "runtimeTargets" as well? I guess it isn't, because the package has no "*.xml" files within the "runtimes" directory; if the SDK reused the "related" property, it would need to check for file existence rather than rely on project.assets.json listing the exact files. The Consuming pdb support with PackageReference spec does not mention runtime-specific related files. |
Triage: This works for runtime items but not for platform-specific items. This would require work from NuGet @aortiz-msft @nkolev92. Moving to backlog for now as there is a workaround listed above of copying yourself. |
@marcpopMSFT please dont move this to the backlog. the workaround is very difficult to discover when the symptom is "missing line numbers in production stack traces" |
Bug in NuGet likely. Code untested/not debugged, I'm guessing: needs the same treatment as the following to copy over the related prop. |
Ahh, so just a fix needed on the nuget side might be enough. That's good to here. @SimonCropp willing to file a copy of this work item in the nuget repo so we can close this out? |
@marcpopMSFT it would be less work if you can move the issue |
given the following project
the directory
bin\Release\net8.0\runtimes\win\lib\net6.0
does not contain any pdbsbut the package does have a pdb in that dir
Machine:
The text was updated successfully, but these errors were encountered: