dotnet / dotnet/linker

Unable to generate linker-dependencies.xml for Windows SDK projects

Open
#3,212 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
392
Forks
128
Avg merge
2d 10h
Merged PRs (30d)
2

Description

per: https://github.com/dotnet/linker/blob/main/src/analyzer/README.md
it seems like this should work for .net SDK style projects but I am having no luck.

I created a simple repro test case and built it using
`msbuild /p:_TrimmerDumpDependencies=true /p:Configuration=Release /t:Rebuild`

but no linker xml file is generated. Attached is the project and the build output.
[LinkerAnalyzerFail.zip](https://github.com/dotnet/linker/files/11185257/LinkerAnalyzerFail.zip)
[msbuild_output.txt](https://github.com/dotnet/linker/files/11185258/msbuild_output.txt)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with src/analyzer/README.md and reproduce the report using the attached LinkerAnalyzerFail.zip and the stated msbuild command. Compare the build output with the expected linker-dependencies.xml behavior; done means the Windows SDK-style project generates that XML file.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.