Replies: 3 comments
-
It seems that your analyzer assembly depends on morelinq.dll. You need to package the analyzer dependency into your package and it should be marked as an analyzer assembly itself. This is needed to ensure that when analyzers are executed with shadow copying, the required dependency can be found at runtime. |
Beta Was this translation helpful? Give feedback.
-
Okay, but how do I do that? What I ended up doing was copy the dll manually in a This can't possibly be the only way to tell VS to just get a nuget package and use it, right? |
Beta Was this translation helpful? Give feedback.
-
I was able to get it working by adding the following to the project file:
I'm not going to claim that I know if every property is necessary, but this will put the dlls from the package into your analyzers folder in the nupkg. |
Beta Was this translation helpful? Give feedback.
-
Version Used: 16.3.5
I have a code analysis package that works when run through the VSIX debugger, but when I try to publish the nuget and reference it, i get the following error:
My .csproj file looks like this:
And it only generates the executable and a reference on
morelinq
, the nuget dependency. I see the dependency in the Nuget package manager, and it installs fine (supposedly) -- including showing up in the "analyzers" tab in my project, but when I try to use the analyzer I get the warning above and nothing else happens.Beta Was this translation helpful? Give feedback.
All reactions