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

Rely on GetUsedAssemblyReferences #19

Closed
stan-sz opened this issue Dec 27, 2022 · 0 comments · Fixed by #20
Closed

Rely on GetUsedAssemblyReferences #19

stan-sz opened this issue Dec 27, 2022 · 0 comments · Fixed by #20

Comments

@stan-sz
Copy link
Contributor

stan-sz commented Dec 27, 2022

Following dotnet/roslyn#625 and https://learn.microsoft.com/en-us/dotnet/api/microsoft.codeanalysis.csharp.csharpcompilation.getusedassemblyreferences?view=roslyn-dotnet-4.3.0 refactor ReferenceTrimmer to use that API. The dotnet/sdk#10414 might be of a great help here.

Another option is to write a simple analyzer that will dump the result of GetUsedAssemblyReferences to a known file and ReferenceTrimmer would pick it up to perform it's action. The analyzer could be hooked up via this package nuget's .props.

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 a pull request may close this issue.

1 participant