dotnet / dotnet/msbuild

NuGets referenced from analyzer/source-generator should automatically include DLL's

Open
#7,640 3 comments 13 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 6h
Merged PRs (30d)
139

Description

Let's say that my analyzer or source generator depends on the `GraphQL` NuGet:
```xml

```

This will fail, because MSBuild won't automatically include GraphQL's DLL's, so I need to do this:
```xml

$(GetTargetPathDependsOn);GetDependencyTargetPaths




```

I'd like to request that when an analyzer/source-generator references a NuGet, MSBuild automatically hooks up the NuGet's DLL's 🙂

This seems to have been a source of confusion for many! See all of the comments at https://github.com/dotnet/roslyn/discussions/47517 🙂

P.S.
Not sure if MSBuild is the correct place to post this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.