Open sin-ack opened 2 weeks ago
Any chance that you could create a small repro of this? Also, does this work with strict deps enabled?
Sorry for not responding. I'll try to create a repro in the weekend. Yes, this works fine with strict deps as analyzers aren't transitively included then. I'd be interested in figuring out if there's a well-defined assembly resolution algorithm so that we can have a general way of solving this.
There is a simplistic check to elide assemblies when they are already present, but the same isn't done for analyzers: https://github.com/bazelbuild/rules_dotnet/blob/626e28effb14f87de8375186ebb59911a16b71fb/dotnet/private/common.bzl#L315
I ended up having the following compile flags passed down:
Which gives me the following compile error:
Should the same transitive check be added for analyzers?