-
Notifications
You must be signed in to change notification settings - Fork 253
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
Consume pdbs from packages in PackageReference - add Debug Symbols to LockFileTargetLibrary #5926
Comments
I know we discussed this in a sync-up meeting. fyi @aortiz-msft |
It was on me to write up a more complete proposal and I got caught up with release issues since. I still intend to push forward on this. It would be good to have it on your radar for soon. There are a lot of pings on related sdk issues for quite some time. I think we should try to prioritize it. |
@wli3 |
Here is a small proposal to push this forward: For any given asset, if there are files next to it that differ only by extension AND those files are not themselves assets of another type, then add a {
"version": 3,
"targets": {
".NETCoreApp,Version=v5.0": {
"Newtonsoft.Json/12.0.3": {
"type": "package",
"compile": {
- "lib/netstandard2.0/Newtonsoft.Json.dll": {}
+ "lib/netstandard2.0/Newtonsoft.Json.dll": {
+ "related": [".pdb", ".xml"]
+ }
},
"runtime": {
- "lib/netstandard2.0/Newtonsoft.Json.dll": {}
+ "lib/netstandard2.0/Newtonsoft.Json.dll": {
+ "related": [".pdb", ".xml"]
+ }
}
}
}, Then in the SDK, any place where we copy a nuget asset should respect AllowedReferenceRelatedFileExtensions Since I no longer work on .NET. I will leave it to the SDK and NuGet teams to come up with a final proposal. |
Closed as fixed. |
@heng-liu can you provide some more details about where the PR/fix is and when/which release we should expect to see it in? Thanks! |
Hi @michael-hawker , thanks for asking! |
dotnet/sdk#1458 depends on this
To include PDB to CopyLocal, SDK need NuGet.ProjectModel to categorize PDB and XML file to an ideally different category like "debug symbol" or "related file".
So SDK can get all the symbol files by something like
var symbolPath = lockFileTargetLibrary.debugSymbols
, just like CompileTimeAssemblies, RuntimeAssemblies todayhttps://github.com/NuGet/NuGet.Client/blob/efae789c75899ca0bdd063f34a4b73cd41510d56/src/NuGet.Core/NuGet.ProjectModel/LockFile/LockFileTargetLibrary.cs#L27
The text was updated successfully, but these errors were encountered: