Open FraserGreenroyd opened 2 years ago
Interesting, I haven't seen this particular error before. It's almost like your app has a reference to MsBuildPipeLogger
but the logger isn't being loaded into your assembly context. What happens if you add a direct reference to https://www.nuget.org/packages/MsBuildPipeLogger.Logger/? I'm also wondering if there's a version mismatch - what's your full set of referenced packages in the app that's using Buildalyzer (not the app being analyzed)?
Hiya, so I appeared to have a MsBuildPipeLogger.Logger.dll
file in my build folder, I'm presuming that comes in via one of the dependencies to Buildalyzer itself, but have added MsBuildPipeLogger.Logger
and copied all DLLs I can find to the execution folder but still the same error.
For the app using Buildalyzer I have the following packages installed now:
There are then DLL dependencies to the parts of BHoM the project is building on top of too.
I have also found that if I try to run the analyser on a .NetFramework472
project file (which throws the above error) and then try to run it on a .netstandard20
project file, the second attempt throws the same error still. However, if I boot cleanly and run the .netstandard20
project file first, then it works.
I did also try building both the Buildalyzer and MsBuildPipeLogger projects from source just to debug through and make sure I was using the absolutely latest up to date versions of the code though that did not yield any positive results.
Hi!
I've been trying to use Buildalyzer to analyse CSProject files for compliance to guidelines with the framework I'm working in. This works well for
netstandard2.0
andnet5.0
CSProject files, but when trying to analyse older-style CSProject files fornet452
andnet472
, I get the following error:I have tried to set up a custom
ILoggerFactory
to just ignore this (as I generally am not caring too much for the reports of the logging at this stage) but this didn't work.I have also tried it with ensuring that the
EnvironmentOptions.Preference
is set toFramework
rather thanCore
but the same error occurs.The code I currently have for this is as follows:
Any help with this will be gratefully received! Thanks in advance :smile: