You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You'll have to pass in all dependencies of an analyzer as input to the compiler. In this case there should be another /analyzer:Tools/analyzers/Desktop.Analyzers.dll
I am able to repro this issue with the above repro steps. Analyzers with dependencies fail to load with dotnetcore csc but work fine with netfx csc. This is the same issue as summarized in dotnet/roslyn-analyzers#1028 (comment). As summarized by @srivatsn in dotnet/roslyn-analyzers#1028 (comment), you will need .NetCore 1.1 and VS2017 RC compiler toolset to get the relevant fixes for this to work.
Version Used: 2.0.0-beta3
Steps to Reproduce:
Tools/dotnetcli/dotnet.exe Tools/csc.exe
with the following commands:Expected Behavior:
binary foo.dll is produced with no warnings
Actual Behavior:
The analyzer fails to load due to missing dependencies. The specific dependency is Desktop.Analyzers.dll
The text was updated successfully, but these errors were encountered: