Open tg73 opened 2 years ago
I've recently been working on an unrelated Roslyn C# code generator. My experience with that, was that the host (be it MSBuild or Visual Studio) would not 'see' any assemblies placed in the same directory as the main analyzer, despite what the online documentation suggests. This was despite working very diligently from various angles on the problem. I do wonder if this is a new behaviour (regression?) in recent VS/MSBuild. In the end, I had to merge all dependencies that might not be available through the host into the analyzer assembly. I used a proprietary tool to embed the assemblies rather than merge them at the IL level. The tool adds a runtime assembly resolver which looks in the analyzer's embedded resources where the unmodified dependency dlls are stored unmodified. This technique might be preferable to merging at the IL level (either with an open source tool or 'by hand' - it's not particularly complicated to do).
I have prodded around a bit with the EP build process, but it's turning into a bit of a rabbit hole which I do not have time for right now. I will try to look at again if and when I have time.
This is with current head of master f6787c08d76ca761eee3d103f43c4289bbb4d3cb, running in VS 16.11.7. Packaging issue suspected, I'm investigating.